关于inputstream的问题来者有分!!
1,如何读取inputstream的内容?
2,读取到的东西不能有乱码
int read(byte[] b) 方法可能中断分开中文字符
3,byte b = new byte[streamlength];
inputs.read(b);
temp=new String(b);
System.out.print(temp);
按长度读取出现一大串不可见字符,整个inputstream不完整
2,读取到的东西不能有乱码
int read(byte[] b) 方法可能中断分开中文字符
3,byte b = new byte[streamlength];
inputs.read(b);
temp=new String(b);
System.out.print(temp);
按长度读取出现一大串不可见字符,整个inputstream不完整
...全文


Java SE
