|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface Resettable
Defines an API for objects that can be mark()ed and reset() on arbitrary
boundaries. Any implementation that has a limited buffer for the mark(),
like InputStream
, must not implement Resettable.
Method Summary | |
---|---|
void |
mark()
Indicate that the current position should be returned to in the case of reset() being called. |
void |
reset()
Return to the last marked position, or the beginning of the stream if mark() has never been called. |
Method Detail |
---|
void mark() throws IOException
reset()
being called.
IOException
void reset() throws IOException
mark()
has never been called.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |