org.bounce.text.xml
Class XMLScanner
java.lang.Object
org.bounce.text.SyntaxHighlightingScanner
org.bounce.text.xml.XMLScanner
public class XMLScanner
- extends SyntaxHighlightingScanner
Associates XML input stream characters with XML specific styles.
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/
- Version:
- $Revision: 1.5 $, $Date: 2009/01/22 22:14:59 $
- Author:
- Edwin Dankert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLScanner
public XMLScanner(Document document)
throws IOException
- Constructs a scanner for the Document.
- Parameters:
document
- the document containing the XML content.
- Throws:
IOException
getEventType
public int getEventType()
getNextTag
public int getNextTag()
throws IOException
- Throws:
IOException
setRange
public void setRange(int start,
int end)
throws IOException
- Sets the scanning range.
- Overrides:
setRange
in class SyntaxHighlightingScanner
- Parameters:
start
- the start of the range.end
- the end of the range.
- Throws:
IOException
scan
public long scan()
throws IOException
- Scans the Xml Stream for XML specific tokens.
- Specified by:
scan
in class SyntaxHighlightingScanner
- Returns:
- the last location.
- Throws:
IOException
Copyright © 2002-2011 Edwin Dankert. All Rights Reserved.