| java.lang.Object java.io.Reader net.n3.nanoxml.ContentReader
ContentReader | class ContentReader extends Reader (Code) | | This reader reads data from another reader until a certain string is encountered.
author: Marc De Scheemaecker version: $Name$, $Version$ |
Method Summary | |
public void | close() Skips remaining data and closes the stream. | protected void | finalize() Cleans up the object when it's destroyed. | public int | read(char[] buffer, int offset, int size) Reads a block of data. |
ContentReader | ContentReader(IXMLReader reader, IXMLEntityResolver entityResolver, char escapeChar, char[] delimiter, boolean useLowLevelReader, String prefix)(Code) | | Creates the reader.
Parameters: reader - the encapsulated reader Parameters: entityResolver - resolves entities Parameters: escapeChar - escape character (& or %) Parameters: delimiter - the delimiter, as a backwards string, that will indicate the end of thestream Parameters: useLowLevelReader - true if & needs to be left untouched; false if entities need tobe processed Parameters: prefix - chars that are already read |
finalize | protected void finalize() throws Throwable(Code) | | Cleans up the object when it's destroyed.
|
read | public int read(char[] buffer, int offset, int size) throws IOException(Code) | | Reads a block of data.
Parameters: buffer - where to put the read data Parameters: offset - first position in buffer to put the data Parameters: size - maximum number of chars to read the number of chars read, or -1 if at EOF throws: java.io.IOException - if an error occurred reading the data |
|
|