<li><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></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.util.svg.AbstractParser</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../../com/mxgraph/util/svg/NumberParser.html"title="class in com.mxgraph.util.svg">NumberParser</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <spanclass="strong">AbstractParser</span>
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>
implements <ahref="../../../../com/mxgraph/util/svg/Parser.html"title="interface in com.mxgraph.util.svg">Parser</a></pre>
<divclass="block">This class is the superclass of all parsers. It provides localization
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><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></td>
<tdclass="colFirst"><code>protected <ahref="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</a></code></td>
<tdclass="colFirst"><code>protected <ahref="../../../../com/mxgraph/util/svg/NormalizingReader.html"title="class in com.mxgraph.util.svg">NormalizingReader</a></code></td>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><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></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/mxgraph/util/svg/AbstractParser.html#createErrorMessage(java.lang.String, java.lang.Object[])">createErrorMessage</a></strong>(<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>
<divclass="block">Returns a localized error message.</div>
<divclass="block">Method responsible for actually parsing data after AbstractParser
has initialized itself.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><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></td>
<divclass="block">Returns the current character value.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/mxgraph/util/svg/AbstractParser.html#parse(java.lang.String)">parse</a></strong>(<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>
<tdclass="colLast"><code><strong><ahref="../../../../com/mxgraph/util/svg/AbstractParser.html#reportError(java.lang.String, java.lang.Object[])">reportError</a></strong>(<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>
<divclass="block">Signals an error to the error handler.</div>
<divclass="block">simple api to call often reported error.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/mxgraph/util/svg/AbstractParser.html#setErrorHandler(com.mxgraph.util.svg.ErrorHandler)">setErrorHandler</a></strong>(<ahref="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</a> handler)</code>
<divclass="block">Allow an application to register an error event handler.</div>
<h3>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></h3>
<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></li>
<pre>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> BUNDLE_CLASSNAME</pre>
<divclass="block">The default resource bundle base name.</div>
<dl><dt><spanclass="strong">See Also:</span></dt><dd><ahref="../../../../constant-values.html#com.mxgraph.util.svg.AbstractParser.BUNDLE_CLASSNAME">Constant Field Values</a></dd></dl>
</li>
</ul>
<aname="errorHandler">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>errorHandler</h4>
<pre>protected <ahref="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</a> errorHandler</pre>
<divclass="block">The error handler.</div>
</li>
</ul>
<aname="reader">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>reader</h4>
<pre>protected <ahref="../../../../com/mxgraph/util/svg/NormalizingReader.html"title="class in com.mxgraph.util.svg">NormalizingReader</a> reader</pre>
<pre>public void setErrorHandler(<ahref="../../../../com/mxgraph/util/svg/ErrorHandler.html"title="interface in com.mxgraph.util.svg">ErrorHandler</a> handler)</pre>
<divclass="block">Allow an application to register an error event handler.
<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></dd>
<dt><spanclass="strong">Parameters:</span></dt><dd><code>handler</code> - The error handler.</dd></dl>
</li>
</ul>
<aname="parse(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>parse</h4>
<pre>public void parse(<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>
<divclass="block">Parses the given string.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<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></dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</a></code></dd></dl>
</li>
</ul>
<aname="doParse()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>doParse</h4>
<pre>protected abstract void doParse()
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>
<divclass="block">Method responsible for actually parsing data after AbstractParser
has initialized itself.</div>
<dl><dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</a></code></dd>
<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></dd></dl>
<pre>protected void reportError(<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>
<divclass="block">Signals an error to the error handler.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>key</code> - The message key in the resource bundle.</dd><dd><code>args</code> - The message arguments.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../com/mxgraph/util/svg/ParseException.html"title="class in com.mxgraph.util.svg">ParseException</a></code></dd></dl>
<divclass="block">simple api to call often reported error.
Just a wrapper for reportError().</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>expectedChar</code> - what caller expected</dd><dd><code>currentChar</code> - what caller found</dd></dl>
<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> createErrorMessage(<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>
<divclass="block">Returns a localized error message.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>key</code> - The message key in the resource bundle.</dd><dd><code>args</code> - The message arguments.</dd></dl>
</li>
</ul>
<aname="getBundleClassName()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getBundleClassName</h4>
<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> getBundleClassName()</pre>
<divclass="block">Returns the resource bundle base name.</div>
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>
<divclass="block">Skips the whitespaces in the current reader.</div>
<dl><dt><spanclass="strong">Throws:</span></dt>
<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></dd></dl>
</li>
</ul>
<aname="skipCommaSpaces()">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>skipCommaSpaces</h4>
<pre>protected void skipCommaSpaces()
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>
<divclass="block">Skips the whitespaces and an optional comma.</div>
<dl><dt><spanclass="strong">Throws:</span></dt>
<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></dd></dl>