|
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(InputSource source)
starts the parsing and will fire events to the registered callback |
void |
parse(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(Reader reader) throws IOException
parse(org.xml.sax.InputSource)
instead.
IOException
- in the case of an I/O Exceptionreader
- the stream to be parsedpublic void parse(InputSource source) throws IOException
IOException
- in the case of an I/O Exceptionsource
- the input source to be parsedpublic GMLTokenizer.Callback getCallback()
public void setCallback(GMLTokenizer.Callback callback)
callback
- New value of property callback.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |