public class DocumentInputReader extends Reader
Note: The XML Editor package is based on the JavaEditorKit example as described in the article 'Customizing a Text Editor' by Timothy Prinzing . See: http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/
| Modifier and Type | Field and Description |
|---|---|
long |
pos |
| Constructor and Description |
|---|
DocumentInputReader(Document document)
Constructs the new input stream reader out of the Xml input strem.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getLastChar()
Returns the last read character.
|
int |
read()
Reads one character from the stream and increases the index.
|
int |
read(char[] ac,
int i,
int j) |
void |
setRange(int start,
int end)
Sets the scan range of the reader.
|
public DocumentInputReader(Document document)
inputstream - the XML input stream.UnsupportedEncodingExceptionUnsupportedEncodingExceptionpublic void setRange(int start,
int end)
throws IOException
start - the start position.end - the end position.IOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int getLastChar()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic int read(char[] ac,
int i,
int j)
throws IOException
read in class ReaderIOExceptionCopyright © 2002-2013 Edwin Dankert. All Rights Reserved.