| java.lang.Object org.apache.cocoon.xml.IncludeXMLConsumer
IncludeXMLConsumer | public class IncludeXMLConsumer implements XMLConsumer(Code) | | A special purpose XMLConsumer which can:
It is more complicated version of
EmbeddedXMLPipe which, except
being used to include other files into the SAX events stream, can perform
optional operations described above.
See Also: EmbeddedXMLPipe author: Berin Loritsch author: Carsten Ziegeler version: CVS $Id: IncludeXMLConsumer.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public void | characters(char[] ch, int start, int end) | public void | comment(char ary, int start, int length) | public void | endCDATA() | public void | endDTD() | public void | endDocument() | public void | endElement(String uri, String local, String qName) | public void | endEntity(String name) | public void | endPrefixMapping(String prefix) | public void | ignorableWhitespace(char[] ch, int start, int end) | public static void | includeNode(Node node, ContentHandler contentHandler, LexicalHandler lexicalHandler) Utility method to stream a DOM node into the provided content handler,
lexical handler. | public void | processingInstruction(String name, String value) | public void | setDocumentLocator(Locator loc) | public void | setIgnoreEmptyCharacters(boolean value) Control SAX event handling. | public void | setIgnoreRootElement(boolean value) Control SAX event handling. | public void | skippedEntity(String ent) | public void | startCDATA() | public void | startDTD(String name, String public_id, String system_id) | public void | startDocument() | public void | startElement(String uri, String local, String qName, Attributes attr) | public void | startEntity(String name) | public void | startPrefixMapping(String prefix, String uri) |
ignorableWhitespace | public void ignorableWhitespace(char[] ch, int start, int end) throws SAXException(Code) | | |
includeNode | public static void includeNode(Node node, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws SAXException(Code) | | Utility method to stream a DOM node into the provided content handler,
lexical handler.
Parameters: node - The DOM Node to be included Parameters: contentHandler - The SAX ContentHandler receiving the information Parameters: lexicalHandler - The SAX LexicalHandler receiving the information (optional) |
setDocumentLocator | public void setDocumentLocator(Locator loc)(Code) | | |
setIgnoreEmptyCharacters | public void setIgnoreEmptyCharacters(boolean value)(Code) | | Control SAX event handling.
If set to true all empty characters events are ignored.
The default is false .
|
setIgnoreRootElement | public void setIgnoreRootElement(boolean value)(Code) | | Control SAX event handling.
If set to true the root element is ignored.
The default is false .
|
|
|