|
||||||||||
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 fromMethod Detail |
---|
public int peek() throws IOException
IOException
- if an error occurspublic boolean isEndOfStream() throws IOException
IOException
- if an error occurspublic void skipCharacters(ICharacterMatcher matcher) throws IOException
matcher
- the object determining whether a character should be skipped
IOException
- if an error occurspublic String readCharacters(ICharacterMatcher matcher) throws IOException
matcher
- the object determining whether a character should be read
IOException
- if an error occurspublic int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
FilterReader.read(char[], int, int)
public boolean ready() throws IOException
ready
in class Reader
IOException
FilterReader.ready()
public boolean markSupported()
markSupported
in class Reader
FilterReader.markSupported()
public void reset() throws IOException
reset
in class Reader
IOException
FilterReader.reset()
public long skip(long n) throws IOException
skip
in class Reader
IOException
FilterReader.skip(long)
public void close() throws IOException
close
in interface Closeable
close
in class Reader
IOException
Reader.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |