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.


Variable Index

 o doc
The Document to read.
 o incomplete
Determines if the read has run to completeion.
 o minLength
Required minimum length of the buffer

Constructor Index

 o MarkupReader(Document)
Constructs a new MarkupReader.

Method Index

 o close()
Close the stream.
 o read(char[], int, int)
Reads characters into a portion of the array.

Variables

 o doc
 protected MarkupObject doc
The Document to read.

 o minLength
 protected int minLength
Required minimum length of the buffer

 o incomplete
 protected boolean incomplete
Determines if the read has run to completeion.

Constructors

 o MarkupReader
 public MarkupReader(Document doc)
Constructs a new MarkupReader.

Parameters:
doc - A non-null Document to be read.

Methods

 o 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
 o 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