www.pudn.com > 200608171542009938.rar > TestFileInputStream.java
// 1 according fis.read(),we could get the int type data!
// 2 if we use the read(),and the file pointer move to next position!
// wangbo 2004 4 23
import java.io.*;
public class TestFileInputStream
{
public static void main(String[] args) throws Exception
{
FileInputStream fis = new FileInputStream("Test.txt");
LineNumberInputStream lnis = new LineNumberInputStream(fis);
lnis.setLineNumber(3);
System.out.println(lnis.getLineNumber());
byte[] bs = new byte[64];
fis.read(bs);
for(int i=0;i