Package java.io
Class SequenceInputStream
Description:
This method returns the number of bytes available on the current stream.
Example
File file = new File("testFile");
String fileString = "Hello World testFile\r";
writeToFile(file,fileString);
InputStream in = new FileInputStream(file);
File file2 = new File("testFil2");
String fileString2 = "Hello World testFile-2\r";
writeToFile(file2,fileString2);
InputStream in2 = new FileInputStream(file2);
SequenceInputStream sis = new SequenceInputStream(in, in2);
Logger.log("available data: " + sis.available());
The example above returns the number of bytes which are available on the current stream.