|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
jpicedt.graphic.io.parser.JPICXmlHandler
Content-handler and error-handler for the JPICParser class.
Field Summary |
Constructor Summary | |
JPICXmlHandler()
|
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
error(SAXParseException e)
Receive notification of a recoverable parser error. |
void |
fatalError(SAXParseException e)
Report a fatal XML parsing error. |
Drawing |
fetchParsedDrawing()
Return a new instance of the Drawing class populated from JPIC-XML tags |
void |
setDocumentLocator(Locator locator)
|
void |
startDocument()
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the start of an element. |
void |
warning(SAXParseException e)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JPICXmlHandler()
Method Detail |
public Drawing fetchParsedDrawing()
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
qName
- the qName of the processed tag, e.g. "rect", "g",...
SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
SAXException
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |