Java Doc for SAXChunkConsumer.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » xml » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » Ozone 1.1 » org.ozoneDB.xml.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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


Field Summary
final protected  ChunkInputStreamchunkInput
    
final protected  ContentHandlercontentHandler
    
protected  NodecurrentNode
    
final protected  CompiledXMLInputStreamcxmlInput
    
final protected  DocumentdomFactory
    
final protected  booleandomLevel2
    
final protected  LexicalHandlerlexicalHandler
    
protected  intprocessLevel
    
protected  ModifiableNodeListresultNodeList
    
protected  NodestartNode
    

Constructor Summary
public  SAXChunkConsumer(Document domFactory, Node appendTo)
     Use this chunk consumer to produce a DOM tree out of the consumed chunks.
public  SAXChunkConsumer(ContentHandler contentHandler)
     Use this chunk consumer to produce SAX events out of the consumed chunks.

Method Summary
final public  voidcharacters(char[] ch, int start, int length)
     Receive notification of character data inside an element.
public  voidcomment(char[] ch, int start, int length)
    
public  voidendCDATA()
    
public  voidendDTD()
    
final public  voidendDocument()
     Received notification of the end of the document.
final public  voidendElement(String _namespaceURI, String _localName, String _rawName)
     Receive notification of the end of an element.
public  voidendEntity(String name)
    
final public  voidendPrefixMapping(String prefix)
     End the scope of a prefix-URI mapping.
final public  NodegetResultNode()
    
final public  NodeListgetResultNodeList()
    
final public  voidignorableWhitespace(char[] _ch, int _start, int _length)
     Receive notification of ignorable whitespace in element content.
final public  voidprocessChunk(byte[] chunkData)
    
final public  voidprocessingInstruction(String _target, String _data)
     Receive notification of a processing instruction.
final public  voidsetDocumentLocator(Locator locator)
     Receive an object for locating the origin of SAX document events.
final public  voidskippedEntity(java.lang.String _name)
     Receive notification of a skipped entity.
public  voidstartCDATA()
    
public  voidstartDTD(String name, String publicId, String systemId)
    
final public  voidstartDocument()
     Received notification of the beginning of the document.
final public  voidstartElement(String _namespaceURI, String _localName, String _rawName, Attributes _atts)
     Receive notification of the start of an element.
public  voidstartEntity(String name)
    
final public  voidstartPrefixMapping(String _prefix, String _uri)
     Begin the scope of a prefix-URI Namespace mapping.

Field Detail
chunkInput
final protected ChunkInputStream chunkInput(Code)



contentHandler
final protected ContentHandler contentHandler(Code)



currentNode
protected Node currentNode(Code)



cxmlInput
final protected CompiledXMLInputStream cxmlInput(Code)



domFactory
final protected Document domFactory(Code)



domLevel2
final protected boolean domLevel2(Code)



lexicalHandler
final protected LexicalHandler lexicalHandler(Code)



processLevel
protected int processLevel(Code)



resultNodeList
protected ModifiableNodeList resultNodeList(Code)



startNode
protected Node startNode(Code)




Constructor Detail
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




Method Detail
characters
final public void characters(char[] ch, int start, int length)(Code)
Receive notification of character data inside an element.



comment
public void comment(char[] ch, int start, int length) throws SAXException(Code)



endCDATA
public void endCDATA() throws SAXException(Code)



endDTD
public void endDTD() throws SAXException(Code)



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.



endEntity
public void endEntity(String name) throws SAXException(Code)



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.



startCDATA
public void startCDATA() throws SAXException(Code)



startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)



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.



startEntity
public void startEntity(String name) throws SAXException(Code)



startPrefixMapping
final public void startPrefixMapping(String _prefix, String _uri)(Code)
Begin the scope of a prefix-URI Namespace mapping.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.