|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Limit
Methods that allow limits to be placed on an input or output stream to avoid clients reading or writing too much information.
Method Summary | |
---|---|
int |
clearLimit()
Clear any limit set by setLimit. |
void |
setLimit(int length)
Set the limit of the data that can be read or written. |
Method Detail |
---|
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 stream
EOFException
- The set limit would exceed
the available data in the stream.int clearLimit()
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |