| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of bytes within the limit that have not been read or written.Clear any limit set by setLimit. |
| public void |
| clearLimit | back to summary |
|---|---|
| public int clearLimit() Clear any limit set by setLimit. After this call no limit checking will be made on any read until a setLimit()) call is made.
| |
| setLimit | back to summary |
|---|---|
| public void setLimit(int length) throws IOException Set the limit of the data that can be read or written. After this call up to and including length bytes can be read from or skipped in the stream. 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
| |