Package com.thaiopensource.validate.auto
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
rewind
public void rewind()- Specified by:
rewind
in interfaceRewindable
-
canRewind
public boolean canRewind()- Specified by:
canRewind
in interfaceRewindable
-
willNotRewind
public void willNotRewind()- Specified by:
willNotRewind
in interfaceRewindable
-
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-