|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.chart2d.Chart2DParser
public class Chart2DParser
The class reads XML documents according to specified DTD and translates all related events into Chart2DHandler events.
Usage sample:
Chart2DParser parser = new Chart2DParser(...);
parser.parse(new InputSource("..."));
Warning: the class is machine generated. DO NOT MODIFY
| Constructor Summary | |
|---|---|
Chart2DParser(Chart2DHandler hdlr,
EntityResolver rslvr)
Creates a parser instance. |
|
| Method Summary | |
|---|---|
void |
characters(char[] chars,
int start,
int len)
|
void |
endDocument()
|
void |
endElement(String ns,
String name,
String qname)
|
void |
endPrefixMapping(String prefix)
|
protected ErrorHandler |
getDefaultErrorHandler()
Creates default error handler used by this parser. |
void |
ignorableWhitespace(char[] chars,
int start,
int len)
|
void |
parse(InputSource input)
The recognizer entry method taking an InputSource. |
static void |
parse(InputSource input,
Chart2DHandler handler)
The recognizer entry method taking an Inputsource. |
void |
parse(URL url)
The recognizer entry method taking a URL. |
static void |
parse(URL url,
Chart2DHandler handler)
The recognizer entry method taking a URL. |
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String ns,
String name,
String qname,
Attributes attrs)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Chart2DParser(Chart2DHandler hdlr,
EntityResolver rslvr)
hdlr - handler interface implementation (never
nullrslvr - SAX entity resolver implementation or
null. It is recommended that it could be
able to resolve at least the DTD.| Method Detail |
|---|
public final void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public final void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public final void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public final void startElement(String ns,
String name,
String qname,
Attributes attrs)
throws SAXException
startElement in interface ContentHandlerSAXException
public final void endElement(String ns,
String name,
String qname)
throws SAXException
endElement in interface ContentHandlerSAXException
public final void characters(char[] chars,
int start,
int len)
throws SAXException
characters in interface ContentHandlerSAXException
public final void ignorableWhitespace(char[] chars,
int start,
int len)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public final void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public final void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public final void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public final void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void parse(InputSource input)
throws SAXException,
ParserConfigurationException,
IOException
input - InputSource to be parsed.
IOException - on I/O error.
SAXException - propagated exception thrown by a
DocumentHandler.
ParserConfigurationException - a parser
satisfining requested configuration can not be created.
FactoryConfigurationError - if the
implementation can not be instantiated.
public void parse(URL url)
throws SAXException,
ParserConfigurationException,
IOException
url - URL source to be parsed.
IOException - on I/O error.
SAXException - propagated exception thrown by a
DocumentHandler.
ParserConfigurationException - a parser
satisfining requested configuration can not be created.
FactoryConfigurationError - if the
implementation can not be instantiated.
public static void parse(InputSource input,
Chart2DHandler handler)
throws SAXException,
ParserConfigurationException,
IOException
input - InputSource to be parsed.
IOException - on I/O error.
SAXException - propagated exception thrown by a
DocumentHandler.
ParserConfigurationException - a parser
satisfining requested configuration can not be created.
FactoryConfigurationError - if the
implementation can not be instantiated.
public static void parse(URL url,
Chart2DHandler handler)
throws SAXException,
ParserConfigurationException,
IOException
url - URL source to be parsed.
IOException - on I/O error.
SAXException - propagated exception thrown by a
DocumentHandler.
ParserConfigurationException - a parser
satisfining requested configuration can not be created.
FactoryConfigurationError - if the
implementation can not be instantiated.protected ErrorHandler getDefaultErrorHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||