com.qizx.api.util
Class SAXToPushStream
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.qizx.xdm.XDefaultHandler
com.qizx.api.util.SAXToPushStream
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler
- public class SAXToPushStream
- extends com.qizx.xdm.XDefaultHandler
Adapter from SAX2 to XMLPushStream.
| Fields inherited from class com.qizx.xdm.XDefaultHandler |
baseURI, currentLocator, docId, dtdName, dtdPublicId, dtdSystemid, takeComment, whitespaceStripped |
|
Method Summary |
void |
characters(char[] chars,
int start,
int length)
|
void |
characters(String chars)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
void |
error(SAXParseException exception)
|
void |
fatalError(SAXParseException exception)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
void |
warning(SAXParseException exception)
|
| Methods inherited from class com.qizx.xdm.XDefaultHandler |
atom, close, endCDATA, endEntity, getBaseURI, getDocumentId, getDtdName, getDtdPublicId, getDtdSystemid, isWhitespaceStripped, notationDecl, saxWrap, setBaseURI, setDocumentId, setWhitespaceStripped, skippedEntity, startCDATA, startEntity, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXToPushStream
public SAXToPushStream(XMLPushStream output)
- Builds a SAX to XMLPushStream adapter.
- Parameters:
output - the XMLPushStream output
startDocument
public void startDocument()
throws SAXException
- Throws:
SAXException- See Also:
XDefaultHandler.startDocument()
endDocument
public void endDocument()
throws SAXException
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
- Throws:
SAXException
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Throws:
SAXException
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
- Throws:
SAXException
characters
public void characters(char[] chars,
int start,
int length)
throws SAXException
- Throws:
SAXException
characters
public void characters(String chars)
throws SAXException
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Throws:
SAXException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
- Throws:
SAXException
endDTD
public void endDTD()
throws SAXException
- Throws:
SAXException
setDocumentLocator
public void setDocumentLocator(Locator locator)
fatalError
public void fatalError(SAXParseException exception)
throws SAXException
- Throws:
SAXException
error
public void error(SAXParseException exception)
throws SAXException
- Throws:
SAXException
warning
public void warning(SAXParseException exception)
throws SAXException
- Throws:
SAXException