public static void main(String[] args) throws IOException {
FileInputStream fis1 = new FileInputStream("demo1.txt");
FileInputStream fis2 = new FileInputStream("demo2.txt");
FileInputStream fis3 = new FileInputStream("demo3.txt");
Vector<FileInputStream> v = new Vector<FileInputStream>();
v.add(fis1);
v.add(fis2);
v.add(fis3);
Enumeration en = v.elements();
SequenceInputStream sis = new SequenceInputStream(en);
FileOutputStream fos = new FileOutputStream("demo13.txt");
SequenceInputStream的read方法
返回读取字节数read(,,)
public int read(byte[] b,
int off,
int len)
throws IOException
返回int字节read()
public int read()
throws IOException