public class XMLPushFilterAdapter extends java.lang.Object implements XMLPushFilter
| Constructor and Description |
|---|
XMLPushFilterAdapter(org.xml.sax.helpers.XMLFilterImpl filter)
Cannot support LexicalHandler events such as comments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String mode,
java.lang.String value)
An implementation of the DeclHandler attributeDecl method.
|
void |
characters(char[] ch,
int start,
int length)
An implementation of the ContentHandler characters method.
|
void |
comment(char[] ch,
int start,
int length)
An implementation of the LexicalHandler comment method.
|
void |
elementDecl(java.lang.String name,
java.lang.String model)
An implementation of the DeclHandler elementDecl method.
|
void |
endCDATA()
An implementation of the LexicalHandler endCDATA method.
|
void |
endDocument()
An implementation of the ContentHandler endDocument method.
|
void |
endDTD()
An implementation of the LexicalHandler endDTD method.
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
An implementation of the ContentHandler endElement method.
|
void |
endEntity(java.lang.String name)
An implementation of the LexicalHandler endEntity method.
|
void |
endPrefixMapping(java.lang.String prefix)
An implementation of the ContentHandler endPrefixMapping method.
|
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
An implementation of the DeclHandler externalEntityDecl method.
|
org.xml.sax.helpers.XMLFilterImpl |
getUnderlyingFilter()
Returns the underlying filter that was used to create this instance.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
An implementation of the ContentHandler ignorableWhitespace method.
|
void |
internalEntityDecl(java.lang.String name,
java.lang.String value)
An implementation of the DeclHandler internalEntityDecl method.
|
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
An implementation of the DTDHandler notationDecl method.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
An implementation of the ContentHandler processingInstruction method.
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
An implementation of the ContentHandler setDocumentLocator method.
|
void |
setResult(javax.xml.transform.Result result)
Enables the user to set the Result of the transformation.
|
void |
skippedEntity(java.lang.String name)
An implementation of the ContentHandler skippedEntity method.
|
void |
startCDATA()
An implementation of the LexicalHandler startCDATA method.
|
void |
startDocument()
An implementation of the ContentHandler startDocument method.
|
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
An implementation of the LexicalHandler startDTD method.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
An implementation of the ContentHandler startElement method.
|
void |
startEntity(java.lang.String name)
An implementation of the LexicalHandler startEntity method.
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
An implementation of the ContentHandler startPrefixMapping method.
|
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
An implementation of the DTDHandler unparsedEntityDecl method.
|
public XMLPushFilterAdapter(org.xml.sax.helpers.XMLFilterImpl filter)
filter - the XMLFilterImpl to use as an XMLPushFilterpublic org.xml.sax.helpers.XMLFilterImpl getUnderlyingFilter()
public void setResult(javax.xml.transform.Result result)
throws java.lang.IllegalArgumentException
setResult in interface XMLPushFilterresult - the Result instance to which the output from this filter should be sentjava.lang.IllegalArgumentException - if result is nullXMLPushFilter.setResult(Result)public final void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlerlocator - to pass through to the underlying filterContentHandler.setDocumentLocator(org.xml.sax.Locator)public final void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.startDocument()public final void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.endDocument()public final void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerprefix - to pass through to the underlying filteruri - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.startPrefixMapping(java.lang.String, java.lang.String)public final void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerprefix - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.endPrefixMapping(java.lang.String)public final void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandleruri - to pass through to the underlying filterlocalName - to pass through to the underlying filterqName - to pass through to the underlying filteratts - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public final void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandleruri - to pass through to the underlying filterlocalName - to pass through to the underlying filterqName - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public final void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlerch - to pass through to the underlying filterstart - to pass through to the underlying filterlength - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.characters(char[], int, int)public final void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerch - to pass through to the underlying filterstart - to pass through to the underlying filterlength - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.ignorableWhitespace(char[], int, int)public final void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlertarget - to pass through to the underlying filterdata - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)public final void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlername - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionContentHandler.skippedEntity(java.lang.String)public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlerch - to pass through to the underlying filterstart - to pass through to the underlying filterlength - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.comment(char[], int, int)public void startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
startDTD in interface org.xml.sax.ext.LexicalHandlername - to pass through to the underlying filterpublicId - to pass through to the underlying filtersystemId - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)public void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.endDTD()public void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlername - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.startEntity(java.lang.String)public void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlername - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.endEntity(java.lang.String)public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.startCDATA()public void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionLexicalHandler.endCDATA()public final void notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
notationDecl in interface org.xml.sax.DTDHandlername - to pass through to the underlying filterpublicId - to pass through to the underlying filtersystemId - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String)public final void unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notationName)
throws org.xml.sax.SAXException
unparsedEntityDecl in interface org.xml.sax.DTDHandlername - to pass through to the underlying filterpublicId - to pass through to the underlying filtersystemId - to pass through to the underlying filternotationName - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public void attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String mode,
java.lang.String value)
throws org.xml.sax.SAXException
attributeDecl in interface org.xml.sax.ext.DeclHandlereName - to pass through to the underlying filteraName - to pass through to the underlying filtertype - to pass through to the underlying filtermode - to pass through to the underlying filtervalue - to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDeclHandler.attributeDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)public void elementDecl(java.lang.String name,
java.lang.String model)
throws org.xml.sax.SAXException
elementDecl in interface org.xml.sax.ext.DeclHandlername - the name to pass through to the underlying filtermodel - the model to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDeclHandler.elementDecl(java.lang.String, java.lang.String)public void externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
externalEntityDecl in interface org.xml.sax.ext.DeclHandlername - the name to pass through to the underlying filterpublicId - the publicId to pass through to the underlying filtersystemId - the systemId to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)public void internalEntityDecl(java.lang.String name,
java.lang.String value)
throws org.xml.sax.SAXException
internalEntityDecl in interface org.xml.sax.ext.DeclHandlername - the name to pass through to the underlying filtervalue - the value to pass through to the underlying filterorg.xml.sax.SAXException - if the underlying filter throws a SAXExceptionDeclHandler.internalEntityDecl(java.lang.String, java.lang.String)