public class XMLInputReader extends FilterReader
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/
in| Constructor and Description |
|---|
XMLInputReader(org.bounce.text.xml.XMLInputStream inputstream)
Constructs the new input stream reader out of the Xml input strem.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLastChar()
Returns the last read character.
|
int |
read()
Reads one character from the stream and increases the index.
|
void |
setRange(int start,
int end)
Sets the scan range of the reader.
|
boolean |
startsWith(int firstChar,
String matchingString)
Checks if sequence consisting of specified first character and following
characters read from this reader starts with specified matching string
Added by Vladimir Nikic, May 22nd, 2007.
|
boolean |
startsWith(String matchingString)
Checks if sequence read from this reader starts with specified matching string
Added by Vladimir Nikic, May 22nd, 2007.
|
void |
unread(int num) |
close, mark, markSupported, read, ready, reset, skippublic XMLInputReader(org.bounce.text.xml.XMLInputStream inputstream)
throws UnsupportedEncodingException
inputstream - the XML input stream.UnsupportedEncodingExceptionpublic void setRange(int start,
int end)
start - the start position.end - the end position.public int read()
throws IOException
read in class FilterReaderIOExceptionpublic int getLastChar()
public boolean startsWith(String matchingString) throws IOException
matchingString - IOExceptionpublic boolean startsWith(int firstChar,
String matchingString)
throws IOException
firstChar - matchingString - IOExceptionpublic void unread(int num)
Copyright © 2022 WSO2. All rights reserved.