public class ExtendedReader
extends java.io.Reader
| Constructor and Description |
|---|
ExtendedReader(java.io.Reader in)
Creates a new extended reader that reads from the provided object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isEndOfStream()
Determines whether the end of the stream is reached.
|
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
peek()
Returns the next character in the stream without actually comitting the
read.
|
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
public ExtendedReader(java.io.Reader in)
in - the Reader to get data frompublic int peek()
throws java.io.IOException
java.io.IOException - if an error occurspublic boolean isEndOfStream()
throws java.io.IOException
java.io.IOException - if an error occurspublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionFilterReader.read(char[], int, int)public boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionFilterReader.ready()public boolean markSupported()
markSupported in class java.io.ReaderFilterReader.markSupported()public void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionFilterReader.reset()public long skip(long n)
throws java.io.IOException
skip in class java.io.Readerjava.io.IOExceptionFilterReader.skip(long)public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionReader.close()