public static String readLine(InputStream is)
{
StringBuffer result = new StringBuffer();
char readByte = 0;
try {
while((readByte=(char)(0x00ff&is.read()))!=10)
{
result.append(readByte);
}
} catch (Exception e) {
e.printStackTrace();
}
return result.toString();
}
实现简单的readline用于http
猜你喜欢
转载自asdf314159265.iteye.com/blog/1872386
今日推荐
周排行