|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsmacs.xngr.browser.editor.XmlScanner
Associates XML input stream characters with styles specific for the XML Editor.
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/
| Field Summary | |
protected XmlInputReader |
in
|
long |
pos
|
int |
token
|
| Constructor Summary | |
XmlScanner(Document document)
Constructs a scanner for the Document. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected XmlInputReader in
public int token
public long pos
| Constructor Detail |
public XmlScanner(Document document)
throws IOException
document - the document containing the XML content.| Method Detail |
public 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
IOException
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||