byte[] by=new byte[1024];
int len;
while((len=is.read(by))!=-1){
String str=new String(by, 0, len);//把一个字节数组by从0取到len,取出来之后转换成String类型
System.out.println("打印"+str);
}
is.close;
byte[] by=new byte[1024];
int len;
while((len=is.read(by))!=-1){
String str=new String(by, 0, len);//把一个字节数组by从0取到len,取出来之后转换成String类型
System.out.println("打印"+str);
}
is.close;