org.apache.ws.jaxme.xs.util

Class DTDParser.StringBufferReader

Enclosing Class:
DTDParser

public static class DTDParser.StringBufferReader
extends Reader

This class is similar to a StringReader, except that it allows to extend the input dynamically.

Method Summary

void
append(String pString)
Appends the given string to the input.
void
close()
int
read(char[] pBuffer, int pOffset, int pLen)
String
requestInput()
Invoked, if the internal buffer is empty.

Method Details

append

public void append(String pString)
Appends the given string to the input.

close

public void close()
            throws IOException

read

public int read(char[] pBuffer,
                int pOffset,
                int pLen)
            throws IOException

requestInput

public String requestInput()
Invoked, if the internal buffer is empty. Subclasses may override this to query for more input.