Package it.unimi.dsi.law.warc.io
Class MeasurableSequenceInputStream
java.lang.Object
java.io.InputStream
it.unimi.dsi.fastutil.io.MeasurableInputStream
it.unimi.dsi.law.warc.io.MeasurableSequenceInputStream
- All Implemented Interfaces:
MeasurableStream,Closeable,AutoCloseable
public class MeasurableSequenceInputStream extends MeasurableInputStream
A
MeasurableInputStream version of a SequenceInputStream.-
Constructor Summary
Constructors Constructor Description MeasurableSequenceInputStream(MeasurableInputStream... streams)Constructs a sequence from an array of input streams. -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
MeasurableSequenceInputStream
Constructs a sequence from an array of input streams.- Parameters:
streams- the streams (some of which may benull).- Throws:
IOException
-
-
Method Details
-
length
public long length() -
position
public long position() -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-