| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | LimitedByteInput(final ByteInput
the byte input to read from byteInput, final long the maximum number of bytes to read limit)Create a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public int | read()
Overrides org. Implements org. |
| public int | read(final byte[]
the destination array b, final int the offset into the array into which data should be read off, final int the number of bytes to attempt to fill in the destination array len)Overrides org. Implements org. |
| public long | skip(final long
the number of bytes to attempt to skip n)Overrides org. Implements org. n bytes of data from this input stream.
|
| LimitedByteInput | back to summary |
|---|---|
| public LimitedByteInput(final ByteInput byteInput, final long limit) Create a new instance.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides org. Implements org. Doc from org. Reads the next byte of data from the input stream. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown.
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Overrides org. Implements org. Doc from org. Read some bytes from the input stream into the given array. Returns the number of bytes actually read (possibly zero), or -1 if the end of stream has been reached.
| |
| skip | back to summary |
|---|---|
| public long skip(final long n) throws IOException Overrides org. Implements org. Doc from org. Skips over and discards up to
| |