| java.lang.Object org.ozoneDB.xml.util.SAXChunkConsumer
SAXChunkConsumer | final public class SAXChunkConsumer implements ContentHandler,LexicalHandler,Serializable(Code) | | Objects of this class can be used to convert a sequence of
SAXEventChunk s back into a DOM tree or SAX events.
WARNING: Don't reuse instances of this class. Create a new instance for each
chunk set (chunks containing information about the same XML tree).
version: $Revision: 1.1 $ $Date: 2001/12/18 10:31:31 $ author: SMB |
Method Summary | |
final public void | characters(char[] ch, int start, int length) Receive notification of character data inside an element. | public void | comment(char[] ch, int start, int length) | public void | endCDATA() | public void | endDTD() | final public void | endDocument() Received notification of the end of the document. | final public void | endElement(String _namespaceURI, String _localName, String _rawName) Receive notification of the end of an element. | public void | endEntity(String name) | final public void | endPrefixMapping(String prefix) End the scope of a prefix-URI mapping. | final public Node | getResultNode() | final public NodeList | getResultNodeList() | final public void | ignorableWhitespace(char[] _ch, int _start, int _length) Receive notification of ignorable whitespace in element content. | final public void | processChunk(byte[] chunkData) | final public void | processingInstruction(String _target, String _data) Receive notification of a processing instruction. | final public void | setDocumentLocator(Locator locator) Receive an object for locating the origin of SAX document events. | final public void | skippedEntity(java.lang.String _name) Receive notification of a skipped entity. | public void | startCDATA() | public void | startDTD(String name, String publicId, String systemId) | final public void | startDocument() Received notification of the beginning of the document. | final public void | startElement(String _namespaceURI, String _localName, String _rawName, Attributes _atts) Receive notification of the start of an element. | public void | startEntity(String name) | final public void | startPrefixMapping(String _prefix, String _uri) Begin the scope of a prefix-URI Namespace mapping. |
domLevel2 | final protected boolean domLevel2(Code) | | |
processLevel | protected int processLevel(Code) | | |
SAXChunkConsumer | public SAXChunkConsumer(Document domFactory, Node appendTo) throws IOException(Code) | | Use this chunk consumer to produce a DOM tree out of the consumed
chunks.
Parameters: _node - The node where the newly created DOM tree will be appended to throws: IllegalArgumentException - if the given node was null |
SAXChunkConsumer | public SAXChunkConsumer(ContentHandler contentHandler) throws IOException(Code) | | Use this chunk consumer to produce SAX events out of the consumed chunks.
Parameters: _contentHandler - the handler the SAX events will be send to throws: IllegalArgumentException - if the given content handler was null |
characters | final public void characters(char[] ch, int start, int length)(Code) | | Receive notification of character data inside an element.
|
endDocument | final public void endDocument()(Code) | | Received notification of the end of the document.
|
endElement | final public void endElement(String _namespaceURI, String _localName, String _rawName)(Code) | | Receive notification of the end of an element.
|
endPrefixMapping | final public void endPrefixMapping(String prefix)(Code) | | End the scope of a prefix-URI mapping.
|
getResultNode | final public Node getResultNode()(Code) | | the last created result node, if this consumer was initializedfor DOM creation. |
getResultNodeList | final public NodeList getResultNodeList()(Code) | | the result node list, if this consumer was initialized forDOM creation. |
ignorableWhitespace | final public void ignorableWhitespace(char[] _ch, int _start, int _length)(Code) | | Receive notification of ignorable whitespace in element content.
|
processChunk | final public void processChunk(byte[] chunkData) throws SAXException, IOException(Code) | | Takes a chunk and produces corresponding SAX events
Parameters: _chunk - the chunk containing definitions of events to be thrown throws: IllegalArgumentException - if the given chunk was null |
processingInstruction | final public void processingInstruction(String _target, String _data)(Code) | | Receive notification of a processing instruction.
|
setDocumentLocator | final public void setDocumentLocator(Locator locator)(Code) | | Receive an object for locating the origin of SAX document events.
|
skippedEntity | final public void skippedEntity(java.lang.String _name)(Code) | | Receive notification of a skipped entity.
|
startDocument | final public void startDocument()(Code) | | Received notification of the beginning of the document.
|
startElement | final public void startElement(String _namespaceURI, String _localName, String _rawName, Attributes _atts)(Code) | | Receive notification of the start of an element.
Note: Namespace handling has to be revised.
|
startPrefixMapping | final public void startPrefixMapping(String _prefix, String _uri)(Code) | | Begin the scope of a prefix-URI Namespace mapping.
|
|
|