public class XmlProducer extends DefaultHandler implements IDataSetProducer, ContentHandler, ErrorHandler
| Constructor and Description |
|---|
XmlProducer(InputSource inputSource) |
| Modifier and Type | Method and Description |
|---|---|
protected static DataSetException |
buildException(SAXException cause)
Wraps a
SAXException into a DataSetException |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
produce()
Process this dataset source.
|
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
setConsumer(IDataSetConsumer consumer) |
void |
setValidating(boolean validating) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingfatalError, warningpublic XmlProducer(InputSource inputSource)
public void setValidating(boolean validating)
public void setConsumer(IDataSetConsumer consumer) throws DataSetException
setConsumer in interface IDataSetProducerDataSetExceptionpublic void produce()
throws DataSetException
IDataSetProducerThis method is synchronous: it will not return until processing has ended. If a client application wants to terminate parsing early, it should throw an exception from the listener.
produce in interface IDataSetProducerDataSetExceptionprotected static final DataSetException buildException(SAXException cause)
SAXException into a DataSetExceptioncause - The cause to be wrapped into a DataSetExceptionDataSetException that wraps the given SAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity in interface EntityResolverresolveEntity in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionCopyright © 2002-2017. All Rights Reserved.