org.apache.ws.jaxme.xs.util
Class DTDParser.StringBufferReader

java.lang.Object
  extended by java.io.Reader
      extended by 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.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
DTDParser.StringBufferReader()
           
 
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
 

Constructor Detail

DTDParser.StringBufferReader

public DTDParser.StringBufferReader()
Method Detail

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