public class EasyGenerationContentHandlerProxy extends Object implements ContentHandler
| Modifier and Type | Field and Description |
|---|---|
static Attributes |
EMPTY_ATTS
An empty Attributes object used when no attributes are needed.
|
| Constructor and Description |
|---|
EasyGenerationContentHandlerProxy(ContentHandler forwardTo)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
characters(String s)
Send a String of character data.
|
void |
element(String name,
String value)
Sends notifications for a whole element with some String content.
|
void |
element(String name,
String value,
Attributes atts)
Sends notifications for a whole element with some String content.
|
void |
endDocument() |
void |
endElement(String name)
Send the notification of the end of an element.
|
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String name)
Sends the notification of the beginning of an element.
|
void |
startElement(String name,
Attributes atts)
Sends the notification of the beginning of an element.
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
public static final Attributes EMPTY_ATTS
public EasyGenerationContentHandlerProxy(ContentHandler forwardTo)
forwardTo - ContentHandler to forward the SAX event to.public void startElement(String name) throws SAXException
name - Name for the element.SAXException - Any SAX exception, possibly wrapping another exception.public void startElement(String name, Attributes atts) throws 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.SAXException - Any SAX exception, possibly wrapping another exception.public void characters(String s) throws SAXException
s - The content StringSAXException - Any SAX exception, possibly wrapping another exception.public void endElement(String name) throws SAXException
name - Name for the element.SAXException - Any SAX exception, possibly wrapping another exception.public void element(String name, String value) throws SAXException
name - Name for the element.value - Content of the element.SAXException - Any SAX exception, possibly wrapping another exception.public void element(String name, String value, Attributes atts) throws 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.SAXException - Any SAX exception, possibly wrapping another exception.public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerContentHandler.setDocumentLocator(Locator)public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionContentHandler.startDocument()public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionContentHandler.endDocument()public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionContentHandler.startPrefixMapping(String, String)public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionContentHandler.endPrefixMapping(String)public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionContentHandler.startElement(String, String, String, Attributes)public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionContentHandler.endElement(String, String, String)public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionContentHandler.characters(char[], int, int)public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionContentHandler.ignorableWhitespace(char[], int, int)public void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionContentHandler.processingInstruction(String, String)public void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionContentHandler.skippedEntity(String)Copyright © 2006–2016 Universidade Fernando Pessoa. All rights reserved.