All Packages Class Hierarchy This Package Previous Next Index
Class vnet.markup.MarkupReader
java.lang.Object
|
+----java.io.Reader
|
+----vnet.markup.MarkupReader
- public class MarkupReader
- extends Reader
Converts a Document to charcter data.
Note: vnet.markup classes are not thread safe. Locking
must be performed by the application.
-
doc
- The Document to read.
-
incomplete
- Determines if the read has run to completeion.
-
minLength
- Required minimum length of the buffer
-
MarkupReader(Document)
- Constructs a new MarkupReader.
-
close()
- Close the stream.
-
read(char[], int, int)
- Reads characters into a portion of the array.
doc
protected MarkupObject doc
- The Document to read.
minLength
protected int minLength
- Required minimum length of the buffer
incomplete
protected boolean incomplete
- Determines if the read has run to completeion.
MarkupReader
public MarkupReader(Document doc)
- Constructs a new MarkupReader.
- Parameters:
- doc - A non-null Document to be read.
read
public int read(char cbuf[],
int off,
int len) throws IOException
- Reads characters into a portion of the array.
- Parameters:
- cbuf - Destination buffer.
- off - Offset at which to start storing characters.
- len - Maximum characters to read.
- Returns:
- The number of characters read, or -1 if the end of the stream
has been reached.
- Overrides:
- read in class Reader
close
public void close() throws IOException
- Close the stream. Once a stream has been closed, further read(),
ready(), mark(), or reset() invocations will throw an IOException.
Closing a previously-closed stream, however, has no effect.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- close in class Reader
All Packages Class Hierarchy This Package Previous Next Index