| java.lang.Object embedding.tools.EasyGenerationContentHandlerProxy
EasyGenerationContentHandlerProxy | public class EasyGenerationContentHandlerProxy implements ContentHandler(Code) | | This class is an implementation of ContentHandler which acts as a proxy to
another ContentHandler and has the purpose to provide a few handy methods
that make life easier when generating SAX events.
Note: This class is only useful for simple cases with no namespaces.
|
Field Summary | |
final public static Attributes | EMPTY_ATTS An empty Attributes object used when no attributes are needed. |
Method Summary | |
public void | characters(String s) Send a String of character data. | public void | characters(char[] ch, int start, int length) | public void | element(String name, String value) Sends notifications for a whole element with some String content. | public void | element(String name, String value, Attributes atts) Sends notifications for a whole element with some String content.
Parameters: name - Name for the element. Parameters: value - Content of the element. Parameters: atts - The attributes attached to the element. | public void | endDocument() | public void | endElement(String name) Send the notification of the end of an element. | public void | endElement(String namespaceURI, String localName, String qName) | public void | endPrefixMapping(String prefix) | public void | ignorableWhitespace(char[] ch, int start, int length) | public void | processingInstruction(String target, String data) | public void | setDocumentLocator(Locator locator) | public void | skippedEntity(String name) | public void | startDocument() | public void | startElement(String name) Sends the notification of the beginning of an element. | public void | startElement(String name, Attributes atts) Sends the notification of the beginning of an element.
Parameters: name - Name for the element. Parameters: atts - The attributes attached to the element. | public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) | public void | startPrefixMapping(String prefix, String uri) |
EMPTY_ATTS | final public static Attributes EMPTY_ATTS(Code) | | An empty Attributes object used when no attributes are needed.
|
EasyGenerationContentHandlerProxy | public EasyGenerationContentHandlerProxy(ContentHandler forwardTo)(Code) | | Main constructor.
Parameters: forwardTo - ContentHandler to forward the SAX event to. |
characters | public void characters(String s) throws SAXException(Code) | | Send a String of character data.
Parameters: s - The content String throws: SAXException - Any SAX exception, possibly wrapping another exception. |
element | public void element(String name, String value) throws SAXException(Code) | | Sends notifications for a whole element with some String content.
Parameters: name - Name for the element. Parameters: value - Content of the element. throws: SAXException - Any SAX exception, possibly wrapping another exception. |
element | public void element(String name, String value, Attributes atts) throws SAXException(Code) | | Sends notifications for a whole element with some String content.
Parameters: name - Name for the element. Parameters: value - Content of the element. Parameters: atts - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. throws: SAXException - Any SAX exception, possibly wrapping another exception. |
endElement | public void endElement(String name) throws SAXException(Code) | | Send the notification of the end of an element.
Parameters: name - Name for the element. throws: SAXException - Any SAX exception, possibly wrapping another exception. |
startElement | public void startElement(String name) throws SAXException(Code) | | Sends the notification of the beginning of an element.
Parameters: name - Name for the element. throws: SAXException - Any SAX exception, possibly wrapping another exception. |
startElement | public void startElement(String name, Attributes atts) throws SAXException(Code) | | Sends the notification of the beginning of an element.
Parameters: name - Name for the element. Parameters: atts - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. throws: SAXException - Any SAX exception, possibly wrapping another exception. |
|
|