|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.gml.XGMLTokenizer
public class XGMLTokenizer
This class is used to parse a valid stream from a reader, which contains well formed xgml. A callback method must be registered with this class, whose methods will be invoked during the parsing of the stream.
Note that this class can only be used with J2SE 1.4 or higher.
Constructor Summary | |
---|---|
XGMLTokenizer()
Creates a new instance of GMLTokenizer. |
|
XGMLTokenizer(GMLTokenizer.Callback callback)
Creates a new instance of GMLTokenizer and installs the given callback. |
Method Summary | |
---|---|
GMLTokenizer.Callback |
getCallback()
Getter for property callback. |
void |
parse(org.xml.sax.InputSource source)
Starts the parsing and will fire events to the registered callback. |
protected void |
parse(org.xml.sax.InputSource source,
org.xml.sax.ContentHandler handler)
Parses an XGML document. |
void |
parse(java.io.Reader reader)
Deprecated. This method does not handle encodings correctly, use parse(org.xml.sax.InputSource) instead. |
void |
setCallback(GMLTokenizer.Callback callback)
Setter for property callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XGMLTokenizer()
public XGMLTokenizer(GMLTokenizer.Callback callback)
callback
- the callback to be usedMethod Detail |
---|
public void parse(java.io.Reader reader) throws java.io.IOException
parse(org.xml.sax.InputSource)
instead.
reader
- the stream to be parsed
java.io.IOException
- in the case of an I/O Exceptionpublic void parse(org.xml.sax.InputSource source) throws java.io.IOException
source
- the input source to be parsed
java.io.IOException
- in the case of an I/O Exceptionprotected void parse(org.xml.sax.InputSource source, org.xml.sax.ContentHandler handler) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
source
- the input source to be parsed.handler
- the handler for content events that are emitted while
parsing the given XGML document.
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public GMLTokenizer.Callback getCallback()
public void setCallback(GMLTokenizer.Callback callback)
callback
- New value of property callback.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |