com.thaiopensource.validate.auto
Class RewindableInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--com.thaiopensource.validate.auto.RewindableInputStream
- All Implemented Interfaces:
- Rewindable
- public class RewindableInputStream
- extends InputStream
- implements Rewindable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewindableInputStream
public RewindableInputStream(InputStream in)
close
public void close()
throws IOException
- Overrides:
close
in class InputStream
IOException
rewind
public void rewind()
- Specified by:
rewind
in interface Rewindable
canRewind
public boolean canRewind()
- Specified by:
canRewind
in interface Rewindable
willNotRewind
public void willNotRewind()
- Specified by:
willNotRewind
in interface Rewindable
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
IOException
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
IOException