<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.util.svg.AbstractParser</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B><DD><AHREF="../../../../com/mxgraph/util/svg/NumberParser.html"title="class in com.mxgraph.util.svg">NumberParser</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>AbstractParser</B><DT>extends <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><DT>implements <AHREF="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</A></DL>
</PRE>
<P>
This class is the superclass of all parsers. It provides localization
<CODE>static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<CODE>protected <AHREF="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</A></CODE></FONT></TD>
<CODE>protected <AHREF="../../../../com/mxgraph/util/svg/NormalizingReader.html"title="class in com.mxgraph.util.svg">NormalizingReader</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/svg/AbstractParser.html#createErrorMessage(java.lang.String, java.lang.Object[])">createErrorMessage</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> key,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] args)</CODE>
<BR>
Returns a localized error message.</TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/svg/AbstractParser.html#parse(java.lang.String)">parse</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> s)</CODE>
<BR>
Parses the given string.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/svg/AbstractParser.html#reportError(java.lang.String, java.lang.Object[])">reportError</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> key,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] args)</CODE>
<BR>
Signals an error to the error handler.</TD>
<TD><CODE><B><AHREF="../../../../com/mxgraph/util/svg/AbstractParser.html#setErrorHandler(com.mxgraph.util.svg.ErrorHandler)">setErrorHandler</A></B>(<AHREF="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</A> handler)</CODE>
<BR>
Allow an application to register an error event handler.</TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public static final <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>BUNDLE_CLASSNAME</B></PRE>
<DL>
<DD>The default resource bundle base name.
<P>
<DL>
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.mxgraph.util.svg.AbstractParser.BUNDLE_CLASSNAME">Constant Field Values</A></DL>
</DL>
<HR>
<ANAME="errorHandler"><!----></A><H3>
errorHandler</H3>
<PRE>
protected <AHREF="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</A><B>errorHandler</B></PRE>
<DL>
<DD>The error handler.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="reader"><!----></A><H3>
reader</H3>
<PRE>
protected <AHREF="../../../../com/mxgraph/util/svg/NormalizingReader.html"title="class in com.mxgraph.util.svg">NormalizingReader</A><B>reader</B></PRE>
public void <B>setErrorHandler</B>(<AHREF="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</A> handler)</PRE>
<DL>
<DD>Allow an application to register an error event handler.
<p>If the application does not register an error event handler,
all error events reported by the parser will cause an exception
to be thrown.
<p>Applications may register a new or different handler in the
middle of a parse, and the parser must begin using the new
handler immediately.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/svg/Parser.html#setErrorHandler(com.mxgraph.util.svg.ErrorHandler)">setErrorHandler</A></CODE> in interface <CODE><AHREF="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>handler</CODE> - The error handler.</DL>
</DD>
</DL>
<HR>
<ANAME="parse(java.lang.String)"><!----></A><H3>
parse</H3>
<PRE>
public void <B>parse</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> s)
throws <AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A></PRE>
<DL>
<DD>Parses the given string.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../../com/mxgraph/util/svg/Parser.html#parse(java.lang.String)">parse</A></CODE> in interface <CODE><AHREF="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A></CODE></DL>
</DD>
</DL>
<HR>
<ANAME="doParse()"><!----></A><H3>
doParse</H3>
<PRE>
protected abstract void <B>doParse</B>()
throws <AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A>,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Method responsible for actually parsing data after AbstractParser
has initialized itself.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A></CODE>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></CODE></DL>
protected void <B>reportError</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> key,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] args)
throws <AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A></PRE>
<DL>
<DD>Signals an error to the error handler.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key in the resource bundle.<DD><CODE>args</CODE> - The message arguments.
<DT><B>Throws:</B>
<DD><CODE><AHREF="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</A></CODE></DL>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>createErrorMessage</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> key,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] args)</PRE>
<DL>
<DD>Returns a localized error message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key in the resource bundle.<DD><CODE>args</CODE> - The message arguments.</DL>
</DD>
</DL>
<HR>
<ANAME="getBundleClassName()"><!----></A><H3>
getBundleClassName</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>getBundleClassName</B>()</PRE>
<DL>
<DD>Returns the resource bundle base name.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>BUNDLE_CLASSNAME.</DL>
</DD>
</DL>
<HR>
<ANAME="skipSpaces()"><!----></A><H3>
skipSpaces</H3>
<PRE>
protected void <B>skipSpaces</B>()
throws <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Skips the whitespaces in the current reader.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></CODE></DL>
</DD>
</DL>
<HR>
<ANAME="skipCommaSpaces()"><!----></A><H3>
skipCommaSpaces</H3>
<PRE>
protected void <B>skipCommaSpaces</B>()
throws <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></PRE>
<DL>
<DD>Skips the whitespaces and an optional comma.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true"title="class or interface in java.io">IOException</A></CODE></DL>