ByteInput implementation which wraps another ByteInput and throws a TooBigObjectException
if the read limit was reached.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | LimitingByteInput.TooBigObjectException
Exception that will get thrown if the |
| Modifier and Type | Field and Description |
|---|---|
| private static final LimitingByteInput. | |
| private final ByteInput | |
| private final long | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. |
| public void | close()
Implements java. |
| public int | read()
Implements org. |
| public int | read(byte[]
the destination array array)Implements org. |
| public int | read(byte[]
the destination array array, int the offset into the array into which data should be read offset, int the number of bytes to attempt to fill in the destination array length)Implements org. |
| private int | |
| public long | skip(long
the number of bytes to attempt to skip bytes)Implements org. n bytes of data from this input stream.
|
| EXCEPTION | back to summary |
|---|---|
| private static final LimitingByteInput. | |
| input | back to summary |
|---|---|
| private final ByteInput input | |
| limit | back to summary |
|---|---|
| private final long limit | |
| read | back to summary |
|---|---|
| private long read | |
| LimitingByteInput | back to summary |
|---|---|
| pack-priv LimitingByteInput(ByteInput input, long limit) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Implements org. Doc from org. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| read | back to summary |
|---|---|
| public int read() throws IOException 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(byte[] array) throws IOException 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.
| |
| read | back to summary |
|---|---|
| public int read(byte[] array, int offset, int length) throws IOException 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.
| |
| readable | back to summary |
|---|---|
| private int readable(int length) | |
| skip | back to summary |
|---|---|
| public long skip(long bytes) throws IOException Implements org. Doc from org. Skips over and discards up to
| |
Object is too big to unmarshall
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TooBigObjectException | back to summary |
|---|---|
| pack-priv TooBigObjectException() | |