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, setValidpublic XMLScanner(Document document) throws IOException
document - the document containing the XML content.IOExceptionpublic int getEventType()
public int getNextTag()
throws IOException
IOExceptionpublic void setRange(int start,
int end)
throws IOException
setRange in class SyntaxHighlightingScannerstart - the start of the range.end - the end of the range.IOExceptionpublic long scan()
throws IOException
scan in class SyntaxHighlightingScannerIOExceptionCopyright © 2002-2013 Edwin Dankert. All Rights Reserved.