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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-