|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
org.apache.tapestry.util.text.ExtendedReader
public class ExtendedReader
A Reader that provides some additional functionality, such as peek().
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
ExtendedReader(Reader in)
Creates a new extended reader that reads from the provided object. |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
isEndOfStream()
Determines whether the end of the stream is reached. |
boolean |
markSupported()
|
int |
peek()
Returns the next character in the stream without actually comitting the read. |
int |
read(char[] cbuf,
int off,
int len)
|
String |
readCharacters(ICharacterMatcher matcher)
Reads the next characters until a character that does not match the provided rule is reached. |
boolean |
ready()
|
void |
reset()
|
long |
skip(long n)
|
void |
skipCharacters(ICharacterMatcher matcher)
Skips the next characters until a character that does not match the provided rule is reached. |
| Methods inherited from class java.io.Reader |
|---|
mark, read, read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedReader(Reader in)
in - the Reader to get data from| Method Detail |
|---|
public int peek()
throws IOException
IOException - if an error occurs
public boolean isEndOfStream()
throws IOException
IOException - if an error occurs
public void skipCharacters(ICharacterMatcher matcher)
throws IOException
matcher - the object determining whether a character should be skipped
IOException - if an error occurs
public String readCharacters(ICharacterMatcher matcher)
throws IOException
matcher - the object determining whether a character should be read
IOException - if an error occurs
public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionFilterReader.read(char[], int, int)
public boolean ready()
throws IOException
ready in class ReaderIOExceptionFilterReader.ready()public boolean markSupported()
markSupported in class ReaderFilterReader.markSupported()
public void reset()
throws IOException
reset in class ReaderIOExceptionFilterReader.reset()
public long skip(long n)
throws IOException
skip in class ReaderIOExceptionFilterReader.skip(long)
public void close()
throws IOException
close in interface Closeableclose in class ReaderIOExceptionReader.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||