| java.lang.Object java.io.InputStream it.unimi.dsi.fastutil.io.FastMultiByteArrayInputStream
Field Summary | |
final public static int | SLICE_BITS The number of bits of an array slice index. | final public static int | SLICE_MASK The mask to retrieve a slice offset. | final public static int | SLICE_SIZE The maximum length of an array slice. | public byte[][] | array The array of arrays backing the input stream. | public long | length The number of valid bytes in
FastMultiByteArrayInputStream.array . |
Method Summary | |
public int | available() Returns the number of bytes that can be read (or skipped over) from this input stream without blocking. | public void | close() Closing a fast byte array input stream has no effect. | public void | mark(int dummy) | public boolean | markSupported() | public long | position() | public void | position(long newPosition) | public int | read() | public int | read(byte[] b, int offset, int length) | public void | reset() | public long | skip(long n) |
SLICE_BITS | final public static int SLICE_BITS(Code) | | The number of bits of an array slice index.
|
SLICE_MASK | final public static int SLICE_MASK(Code) | | The mask to retrieve a slice offset.
|
SLICE_SIZE | final public static int SLICE_SIZE(Code) | | The maximum length of an array slice.
|
array | public byte[][] array(Code) | | The array of arrays backing the input stream.
|
FastMultiByteArrayInputStream | public FastMultiByteArrayInputStream(InputStream is, long size) throws IOException(Code) | | Creates a new multi-array input stream loading it from an input stream.
Parameters: is - the input stream that will fill the array. Parameters: size - the number of bytes to be read from is . |
FastMultiByteArrayInputStream | public FastMultiByteArrayInputStream(FastMultiByteArrayInputStream is)(Code) | | Creates a new multi-array input stream sharing the backing arrays of another multi-array input stream.
Parameters: is - the multi-array input stream to replicate. |
FastMultiByteArrayInputStream | public FastMultiByteArrayInputStream(byte[] array)(Code) | | Creates a new multi-array input stream using a given array.
Parameters: array - the backing array. |
available | public int available()(Code) | | Returns the number of bytes that can be read (or skipped over) from this input stream without blocking.
Note that this number may be smaller than the number of bytes actually
available from the stream if this number exceeds
Integer.MAX_VALUE .
the minimum among the number of available bytes and Integer.MAX_VALUE. |
close | public void close()(Code) | | Closing a fast byte array input stream has no effect.
|
mark | public void mark(int dummy)(Code) | | |
markSupported | public boolean markSupported()(Code) | | |
position | public long position()(Code) | | |
position | public void position(long newPosition)(Code) | | |
read | public int read(byte[] b, int offset, int length)(Code) | | |
reset | public void reset()(Code) | | |
skip | public long skip(long n)(Code) | | |
|
|