public class RewindableReader extends Reader implements Rewindable
Constructor and Description |
---|
RewindableReader(Reader in) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRewind() |
void |
close() |
int |
read() |
int |
read(char[] b,
int off,
int len) |
void |
rewind() |
void |
willNotRewind() |
public RewindableReader(Reader in)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void rewind()
rewind
in interface Rewindable
public boolean canRewind()
canRewind
in interface Rewindable
public void willNotRewind()
willNotRewind
in interface Rewindable
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] b, int off, int len) throws IOException
read
in class Reader
IOException