public class EasyGenerationContentHandlerProxy extends java.lang.Object implements org.xml.sax.ContentHandler
Modifier and Type | Field and Description |
---|---|
static org.xml.sax.Attributes |
EMPTY_ATTS
An empty Attributes object used when no attributes are needed.
|
Constructor and Description |
---|
EasyGenerationContentHandlerProxy(org.xml.sax.ContentHandler forwardTo)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
characters(java.lang.String s)
Send a String of character data.
|
void |
element(java.lang.String name,
java.lang.String value)
Sends notifications for a whole element with some String content.
|
void |
element(java.lang.String name,
java.lang.String value,
org.xml.sax.Attributes atts)
Sends notifications for a whole element with some String content.
|
void |
endDocument() |
void |
endElement(java.lang.String name)
Send the notification of the end of an element.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
endPrefixMapping(java.lang.String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(java.lang.String target,
java.lang.String data) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
void |
skippedEntity(java.lang.String name) |
void |
startDocument() |
void |
startElement(java.lang.String name)
Sends the notification of the beginning of an element.
|
void |
startElement(java.lang.String name,
org.xml.sax.Attributes atts)
Sends the notification of the beginning of an element.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri) |
public static final org.xml.sax.Attributes EMPTY_ATTS
public EasyGenerationContentHandlerProxy(org.xml.sax.ContentHandler forwardTo)
forwardTo
- ContentHandler to forward the SAX event to.public void startElement(java.lang.String name) throws org.xml.sax.SAXException
name
- Name for the element.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void startElement(java.lang.String name, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
name
- Name for the element.atts
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void characters(java.lang.String s) throws org.xml.sax.SAXException
s
- The content Stringorg.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endElement(java.lang.String name) throws org.xml.sax.SAXException
name
- Name for the element.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void element(java.lang.String name, java.lang.String value) throws org.xml.sax.SAXException
name
- Name for the element.value
- Content of the element.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void element(java.lang.String name, java.lang.String value, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
name
- Name for the element.value
- Content of the element.atts
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
ContentHandler.setDocumentLocator(Locator)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.endDocument()
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.startPrefixMapping(String, String)
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.endPrefixMapping(String)
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.endElement(String, String, String)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.ignorableWhitespace(char[], int, int)
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.processingInstruction(String, String)
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.skippedEntity(String)