public class XMLScanner extends SyntaxHighlightingScanner
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 |
getEventType() |
int |
getNextTag() |
long |
scan()
Scans the Xml Stream for XML specific tokens.
|
void |
setRange(int start,
int end)
Sets the scanning range.
|
getEndOffset, getStartOffset, isError, isValid, setValid
public XMLScanner(Document document) throws IOException
document
- the document containing the XML content.IOException
public int getEventType()
public int getNextTag() throws IOException
IOException
public void setRange(int start, int end) throws IOException
setRange
in class SyntaxHighlightingScanner
start
- the start of the range.end
- the end of the range.IOException
public long scan() throws IOException
scan
in class SyntaxHighlightingScanner
IOException
Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.