org.apache.ws.jaxme.xs.util
Class DTDParser.StringBufferReader
java.lang.Object
java.io.Reader
org.apache.ws.jaxme.xs.util.DTDParser.StringBufferReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
- Enclosing class:
- DTDParser
public static class DTDParser.StringBufferReader
- extends java.io.Reader
This class is similar to a StringReader, except that
it allows to extend the input dynamically.
Fields inherited from class java.io.Reader |
lock |
Method Summary |
void |
append(java.lang.String pString)
Appends the given string to the input. |
void |
close()
|
int |
read(char[] pBuffer,
int pOffset,
int pLen)
|
java.lang.String |
requestInput()
Invoked, if the internal buffer is empty. |
Methods inherited from class java.io.Reader |
mark, markSupported, read, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTDParser.StringBufferReader
public DTDParser.StringBufferReader()
append
public void append(java.lang.String pString)
- Appends the given string to the input.
requestInput
public java.lang.String requestInput()
- Invoked, if the internal buffer is empty.
Subclasses may override this to query for more
input.
read
public int read(char[] pBuffer,
int pOffset,
int pLen)
throws java.io.IOException
- Specified by:
read
in class java.io.Reader
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader
- Throws:
java.io.IOException