Class RewindableReader
java.lang.Object
java.io.Reader
com.thaiopensource.validate.auto.RewindableReader
- All Implemented Interfaces:
Rewindable,Closeable,AutoCloseable,Readable
Rewindable implementation over a reader.
Modified from RewindableInputStream by replacing the input stream with a reader.
- Author:
- george
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
RewindableReader
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
rewind
public void rewind()- Specified by:
rewindin interfaceRewindable
-
canRewind
public boolean canRewind()- Specified by:
canRewindin interfaceRewindable
-
willNotRewind
public void willNotRewind()- Specified by:
willNotRewindin interfaceRewindable
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-