java InputStream读取数据问题

//截取自http://bbs.chinaunix.net/thread-3677707-1-1.html

javaioInputStreambyteavailable
首先请查看一下JavaAPI,可以看到InputStream读取流有三个方法,分别为read(),read(byte[] b),read(byte[] b, int off, int len)。其中read()方法是一次读取一个字节,鬼都知道效率是非常低的。所以最好是使用后面两个方法。 Continue reading

Posted in Computer, Java | Leave a comment

哀码农

夫码农者,it之民工也。多孤身之宅男,邋遢之撸客。或出于技校,或出于大学,道之同辙,命之同运也。 Continue reading

Posted in Literature | Leave a comment

easyui tree expand to second level

eayui tree  collapse, and expand to second level Continue reading

Posted in Computer, javascript | Leave a comment

沉默是男人婚姻反抗的普遍形式

2013年08月13日 21:03
来源:凤凰网时尚 作者:天空永远蔚蓝

导语:常有不少女性网友向天空永远蔚蓝坦露:其实我最怕的是他的沉默,他只要稍微有点儿不开心就喜欢一个人闷在那里不说话,这种方式真的是受不了,倒不如他对着我大骂几声来得痛快!夫妻两个人干嘛要弄得那么深沉呢?有什么东西讲出来不是更好吗? Continue reading

Posted in World | Leave a comment

netsh set ip address

cmd命令下,可输入netsh回车,输入命令+空格+?获取帮助。例如:netsh>interface ?
以下是bat脚本
Posted in Computer | Leave a comment

java encrypt example

a very simple example of encrypt Continue reading

Posted in Computer, Java | Leave a comment

an oracle trigger example

a trigger example of oracle Continue reading

Posted in Computer, Database | Leave a comment

图片自动缩放

Css代码  Continue reading

Posted in Computer, javascript | Leave a comment

easyui datagrid edit by click save all at one time

easyui datagrid can edit directly. There’s simples at it’s website, here’s another simple example. Different to before post, this one will save edited rows at one time by click a button. Continue reading

Posted in Computer, Java | Leave a comment

easyui create columns dynamically

easyui can dynamically change the columns, but what if there’s a lot of columns need to create? or create columns based dynamic data or server side data? here’s a very simple example: Continue reading

Posted in Computer, javascript | Leave a comment