|
||||||||||
| 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(java.io.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)
|
java.lang.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(java.io.Reader in)
in - the Reader to get data from| Method Detail |
|---|
public int peek()
throws java.io.IOException
java.io.IOException - if an error occurs
public boolean isEndOfStream()
throws java.io.IOException
java.io.IOException - if an error occurs
public void skipCharacters(ICharacterMatcher matcher)
throws java.io.IOException
matcher - the object determining whether a character should be skipped
java.io.IOException - if an error occurs
public java.lang.String readCharacters(ICharacterMatcher matcher)
throws java.io.IOException
matcher - the object determining whether a character should be read
java.io.IOException - if an error occurs
public 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 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 class java.io.Readerjava.io.IOExceptionReader.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||