class SAXModifyContentHandler extends SAXContentHandler
org.dom4.ElementHandleris still
handling the current Element.SAXContentHandler| Constructor and Description |
|---|
SAXModifyContentHandler() |
SAXModifyContentHandler(DocumentFactory documentFactory) |
SAXModifyContentHandler(DocumentFactory documentFactory,
ElementHandler elementHandler) |
SAXModifyContentHandler(DocumentFactory documentFactory,
ElementHandler elementHandler,
ElementStack elementStack) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
activeHandlers() |
void |
characters(char[] parm1,
int parm2,
int parm3) |
void |
comment(char[] characters,
int parm2,
int parm3) |
void |
endCDATA() |
void |
endDocument() |
void |
endDTD() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
endEntity(java.lang.String name) |
void |
endPrefixMapping(java.lang.String prefix) |
protected XMLWriter |
getXMLWriter() |
void |
ignorableWhitespace(char[] parm1,
int parm2,
int parm3) |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Receive notification of a notation declaration event.
|
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
setXMLWriter(XMLWriter writer) |
void |
skippedEntity(java.lang.String name) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startEntity(java.lang.String name) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
void |
unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notation)
Receive notification of an unparsed entity declaration event.
|
addAttributes, addDeclaredNamespaces, addDTDDeclaration, addExternalDTDDeclaration, attributeDecl, completeCurrentTextNode, createDocument, createElementStack, elementDecl, error, externalEntityDecl, fatalError, getDocument, getElementStack, getEntityResolver, getInputSource, internalEntityDecl, isIgnorableEntity, isIgnoreComments, isIncludeExternalDTDDeclarations, isIncludeInternalDTDDeclarations, isMergeAdjacentText, isStripWhitespaceText, setElementStack, setEntityResolver, setIgnoreComments, setIncludeExternalDTDDeclarations, setIncludeInternalDTDDeclarations, setInputSource, setMergeAdjacentText, setStripWhitespaceText, warningprivate XMLWriter xmlWriter
public SAXModifyContentHandler()
public SAXModifyContentHandler(DocumentFactory documentFactory)
public SAXModifyContentHandler(DocumentFactory documentFactory, ElementHandler elementHandler)
public SAXModifyContentHandler(DocumentFactory documentFactory, ElementHandler elementHandler, ElementStack elementStack)
public void setXMLWriter(XMLWriter writer)
public void startCDATA()
throws org.xml.sax.SAXException
startCDATA in interface org.xml.sax.ext.LexicalHandlerstartCDATA in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic 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.LexicalHandlerstartDTD in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void endDTD()
throws org.xml.sax.SAXException
endDTD in interface org.xml.sax.ext.LexicalHandlerendDTD in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void comment(char[] characters,
int parm2,
int parm3)
throws org.xml.sax.SAXException
comment in interface org.xml.sax.ext.LexicalHandlercomment in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void startEntity(java.lang.String name)
throws org.xml.sax.SAXException
startEntity in interface org.xml.sax.ext.LexicalHandlerstartEntity in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void endCDATA()
throws org.xml.sax.SAXException
endCDATA in interface org.xml.sax.ext.LexicalHandlerendCDATA in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void endEntity(java.lang.String name)
throws org.xml.sax.SAXException
endEntity in interface org.xml.sax.ext.LexicalHandlerendEntity in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void unparsedEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String notation)
throws org.xml.sax.SAXException
SAXContentHandler
Note that the notation name corresponds to a notation reported by the
notationDeclevent. It is up to the application to
record the entity for later reference, if necessary.
If the system identifier is a URL, the parser must resolve it fully before passing it to the application.
unparsedEntityDecl in interface org.xml.sax.DTDHandlerunparsedEntityDecl in class SAXContentHandlername - The unparsed entity's name.publicId - The entity's public identifier, or null if none was given.systemId - The entity's system identifier.notation - The name of the associated notation.org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.SAXContentHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String),
AttributeListpublic void notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
SAXContentHandlerIt is up to the application to record the notation for later reference, if necessary.
At least one of publicId and systemId must be non-null. If a system identifier is present, and it is a URL, the SAX parser must resolve it fully before passing it to the application through this event.
There is no guarantee that the notation declaration will be reported before any unparsed entities that use it.
notationDecl in interface org.xml.sax.DTDHandlernotationDecl in class SAXContentHandlername - The notation name.publicId - The notation's public identifier, or null if none was given.systemId - The notation's system identifier, or null if none was given.org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.SAXContentHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String),
AttributeListpublic 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.ContentHandlerstartElement in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] parm1,
int parm2,
int parm3)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
java.lang.String data)
throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.ContentHandlerprocessingInstruction in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class SAXContentHandlerpublic void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
skippedEntity in interface org.xml.sax.ContentHandlerskippedEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic 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.ContentHandlerendElement in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class SAXContentHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] parm1,
int parm2,
int parm3)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class SAXContentHandlerorg.xml.sax.SAXExceptionprotected XMLWriter getXMLWriter()
private boolean activeHandlers()