InputStream is = new FileInputStream("1.txt");
BufferedInputStream bufin = new BufferedInputStream(is);
//Byte[] b = new byte[200];
for(int i = 0; i < 2; i++)
{
int c = 10;
byte[] b = new byte[20];
int length = 0;
//is.(c);
while(-1 != (length=is.read(b)))
{
if(0 == i&&is.Supported())
{
c+=10;
is.(c);
String st = new String(b,0,c);
System.out.println(b);
is.reset();
}
else
{
String st2 = new String(b,0,c);
System.out.println(st2);
}
//is.reset();
}
看看要修改哪些地方,
还有就是方法该怎么调用。