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.UnsupportedEncodingException
UnsupportedEncodingException
public void setRange(int start, int end) throws IOException
start
- the start position.end
- the end position.IOException
public int read() throws IOException
read
in class Reader
IOException
public int getLastChar()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read(char[] ac, int i, int j) throws IOException
read
in class Reader
IOException
Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.