LimitObjectInput
ArrayInputStream
, ArrayOutputStream
, CounterOutputStream
, LimitInputStream
, LimitReader
, RawToBinaryFormatStream
public interface Limit
Modifier and Type | Method | Description |
---|---|---|
int |
clearLimit() |
Clear any limit set by setLimit.
|
void |
setLimit(int length) |
Set the limit of the data that can be read or written.
|
void setLimit(int length) throws java.io.IOException
On input classes (e.g. InputStreams) any attempt to read or skip beyond the limit will result in an end of file indication (e.g. read() methods returning -1 or throwing EOFException).
On output classes (e.g. OutputStream) any attempt to write more beyond the limit will result in an EOFException
java.io.IOException
- IOException from some underlying streamjava.io.EOFException
- The set limit would exceed
the available data in the stream.int clearLimit()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.