public class XMLScanner extends Object
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/
| Constructor and Description |
|---|
XMLScanner(Document document)
Constructs a scanner for the Document.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndOffset()
Gets the end location of the current token in the document.
|
int |
getStartOffset()
Gets the starting location of the current token in the document.
|
long |
scan()
Scans the Xml Stream for XML specific tokens.
|
void |
setRange(int start,
int end)
Sets the scanning range.
|
public String token
public XMLScanner(Document document) throws IOException
document - the document containing the XML content.IOExceptionpublic void setRange(int start,
int end)
throws IOException
start - the start of the range.end - the end of the range.IOExceptionpublic final int getStartOffset()
public final int getEndOffset()
public long scan()
throws IOException
IOExceptionCopyright © 2022 WSO2. All rights reserved.