Java Doc for SAXChunkProducer.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.SAXChunkProducer

SAXChunkProducer
final public class SAXChunkProducer implements ContentHandler,LexicalHandler,Serializable(Code)
This class produces a sequence of SAXEventChunk s out of SAX events or out of a DOM tree. These chunks are used to communicate between client and server.
version:
   $Revision: 1.1 $ $Date: 2001/12/18 10:31:31 $
author:
   SMB


Field Summary
public  SAXChunkConsumerdbConsumer
     Used for SAX storage.

Constructor Summary
public  SAXChunkProducer(NodeList _nodelist)
    
public  SAXChunkProducer(NodeList _nodelist, int _depth)
    
public  SAXChunkProducer(NodeList _nodelist, int _maxParts, int _depth)
    
public  SAXChunkProducer(SAXChunkProducerDelegate _delegate)
    
public  SAXChunkProducer(SAXChunkProducerDelegate _delegate, int _depth)
    
public  SAXChunkProducer(SAXChunkProducerDelegate _delegate, int _maxParts, int _depth)
    

Method Summary
final public  voidcharacters(char[] ch, int start, int length)
     Receive notification of character data inside an element.
final protected  voidcheckChunk()
    
public  ChunkOutputStreamchunkStream()
    
public  voidcomment(char[] ch, int start, int length)
    
final public  voidcreateNextChunk()
     Converts a given DOM tree in multiple steps to SAX events. Every call throws the specified number of events (or less, if the conversion is finished). Before calling this method the first time SAXChunkProducer.nextNode nextNode has to be set to the root node of the DOM tree to convert, and SAXChunkProducer.chunkState has to be set to SAXChunkProducer.CHUNK_STATE_INIT .
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  voidignorableWhitespace(char[] ch, int start, int length)
     Receive notification of ignorable whitespace in element content.
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
dbConsumer
public SAXChunkConsumer dbConsumer(Code)
Used for SAX storage. Because chunk processing is done using SAXChunkProducerDelegate (which means consumer creation and consumer usage happens in different methods) the consumer has to be stored somewhere. I choose the corresponding producer.




Constructor Detail
SAXChunkProducer
public SAXChunkProducer(NodeList _nodelist) throws IOException(Code)



SAXChunkProducer
public SAXChunkProducer(NodeList _nodelist, int _depth) throws IOException(Code)



SAXChunkProducer
public SAXChunkProducer(NodeList _nodelist, int _maxParts, int _depth) throws IOException(Code)



SAXChunkProducer
public SAXChunkProducer(SAXChunkProducerDelegate _delegate) throws IOException(Code)



SAXChunkProducer
public SAXChunkProducer(SAXChunkProducerDelegate _delegate, int _depth) throws IOException(Code)



SAXChunkProducer
public SAXChunkProducer(SAXChunkProducerDelegate _delegate, int _maxParts, int _depth) throws IOException(Code)




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



checkChunk
final protected void checkChunk()(Code)



chunkStream
public ChunkOutputStream chunkStream() throws SAXException(Code)
the data of the chunk created during the last call ofSAXChunkProducer.createNextChunk().



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



createNextChunk
final public void createNextChunk() throws SAXException(Code)
Converts a given DOM tree in multiple steps to SAX events. Every call throws the specified number of events (or less, if the conversion is finished). Before calling this method the first time SAXChunkProducer.nextNode nextNode has to be set to the root node of the DOM tree to convert, and SAXChunkProducer.chunkState has to be set to SAXChunkProducer.CHUNK_STATE_INIT . (The same way you can reset the nextChunk context.)
Parameters:
  _contentHandler - SAX content handler that receives the events
Parameters:
  _eventsToThrow - the number of events to throw true if there are still events to throw, false if processing hasfinished
throws:
  SAXException -
throws:
  IllegalStateException - if SAXChunkProducer.chunkState hasnot been set or has been set to an unknown value.
throws:
  IllegalArgumentException - if the value of _eventsToThrow wasequal or less than 0.



endCDATA
public void endCDATA() throws SAXException(Code)



endDTD
public void endDTD() throws SAXException(Code)



endDocument
final public void endDocument() throws SAXException(Code)
Received notification of the end of the document.



endElement
final public void endElement(String _namespaceURI, String _localName, String _rawName) throws SAXException(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) throws SAXException(Code)
End the scope of a prefix-URI mapping.



ignorableWhitespace
final public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code)
Receive notification of ignorable whitespace in element content.



processingInstruction
final public void processingInstruction(String target, String data) throws SAXException(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) throws SAXException(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() throws SAXException(Code)
Received notification of the beginning of the document.



startElement
final public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException(Code)
Receive notification of the start of an element.



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



startPrefixMapping
final public void startPrefixMapping(String prefix, String uri) throws SAXException(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.