Java Doc for XMLEventConsumerDelegate.java in  » XML » stax-utils » javanet » staxutils » 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 » XML » stax utils » javanet.staxutils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javanet.staxutils.XMLEventConsumerDelegate

XMLEventConsumerDelegate
public class XMLEventConsumerDelegate implements XMLEventConsumer(Code)
Writes all events to a wrapped XMLEventConsumer , and provides convenience methods for creating events written to the internal consumer.
author:
   Christian Niles
version:
   $Revision: 1.4 $



Constructor Summary
public  XMLEventConsumerDelegate(XMLEventConsumer consumer)
    
public  XMLEventConsumerDelegate(XMLEventConsumer consumer, XMLEventFactory factory)
    

Method Summary
public  voidadd(XMLEvent event)
    
public  voidaddCData(String content)
     Creates and adds a CDATA Characters event.
public  voidaddComment(String comment)
     Creates and adds a Comment event.
public  voidaddDTD(String dtd)
     Creates and adds a DTD event.
public  voidaddEndDocument()
     Creates and adds an EndDocument event.
public  voidaddEndElement(String localName)
     Creates and adds an EndElement event.
public  voidaddEndElement(String localName, Iterator namespaces)
     Creates and adds an EndElement event.
public  voidaddEndElement(String ns, String localName)
     Creates and adds an EndElement event.
public  voidaddEndElement(String ns, String localName, Iterator namespaces)
     Creates and adds an EndElement event.
public  voidaddEndElement(QName name)
     Creates and adds an EndElement event.
public  voidaddEndElement(QName name, Iterator namespaces)
     Creates and adds an EndElement event.
public  voidaddIgnorableSpace(String content)
     Creates and adds an ignorable space Characters event.
public  voidaddSpace(String content)
     Creates and adds a whitespace Characters event.
public  voidaddStartDocument()
     Creates and adds a StartDocument event.
public  voidaddStartDocument(String encoding)
     Creates and adds a StartDocument event.
public  voidaddStartDocument(String encoding, String version)
     Creates and adds a StartDocument event.
public  voidaddStartDocument(String encoding, String version, boolean standalone)
     Creates and adds a StartDocument event.
public  voidaddStartElement(String localName, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddStartElement(String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddStartElement(String ns, String localName, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddStartElement(String ns, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddStartElement(QName name, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddStartElement(QName name, Iterator attributes, Iterator namespaces, NamespaceContext context)
     Creates and adds a StartElement event.
public  voidaddText(String content)
     Creates and adds a Characters event.
public  voidaddTextElement(String name, String text, NamespaceContext context)
     Adds a simple text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, String text, NamespaceContext context)
     Adds a simple text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, boolean text, NamespaceContext context)
     Adds a boolean text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, boolean text, NamespaceContext context)
     Adds a boolean text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, int text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, int text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, long text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, long text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, float text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, float text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, double text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, double text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(String name, Number text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  voidaddTextElement(QName name, Number text, NamespaceContext context)
     Adds a text element with no attributes or namespace declarations.
public  XMLEventConsumergetConsumer()
     Returns a reference to the underlying XMLEventConsumer to which events are added.
public  XMLEventFactorygetEventFactory()
     Returns a reference to the XMLEventFactory used to construct events.
public  voidsetConsumer(XMLEventConsumer consumer)
     Sets the underlying XMLEventConsumer to which events are added.
public  voidsetEventFactory(XMLEventFactory factory)
     Sets the XMLEventFactory used to construct events.


Constructor Detail
XMLEventConsumerDelegate
public XMLEventConsumerDelegate(XMLEventConsumer consumer)(Code)



XMLEventConsumerDelegate
public XMLEventConsumerDelegate(XMLEventConsumer consumer, XMLEventFactory factory)(Code)




Method Detail
add
public void add(XMLEvent event) throws XMLStreamException(Code)



addCData
public void addCData(String content) throws XMLStreamException(Code)
Creates and adds a CDATA Characters event.
Parameters:
  content - The CDATA content, as perXMLEventFactory.createCData(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addComment
public void addComment(String comment) throws XMLStreamException(Code)
Creates and adds a Comment event.
Parameters:
  comment - The comment text, as perXMLEventFactory.createComment(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addDTD
public void addDTD(String dtd) throws XMLStreamException(Code)
Creates and adds a DTD event.
Parameters:
  dtd - The DTD content, as perXMLEventFactory.createDTD(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addEndDocument
public void addEndDocument() throws XMLStreamException(Code)
Creates and adds an EndDocument event.
See Also:   XMLEventFactory.createEndDocument
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(String localName) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  localName - The unqualified element name.
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(String localName, Iterator namespaces) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  localName - The unqualified element name.
Parameters:
  namespaces - An Iterator over the element's namespaces thatare going out of scope.
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(String ns, String localName) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  ns - The element namespace.
Parameters:
  localName - The element name.
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(String ns, String localName, Iterator namespaces) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  ns - The element namespace.
Parameters:
  localName - The element name.
Parameters:
  namespaces - An Iterator over the element's namespaces thatare going out of scope.
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(QName name) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  name - The element name.
See Also:   XMLEventFactory.createEndElement(QNameIterator)
throws:
  XMLStreamException - If an error occurs adding the event.



addEndElement
public void addEndElement(QName name, Iterator namespaces) throws XMLStreamException(Code)
Creates and adds an EndElement event.
Parameters:
  name - The element name.
Parameters:
  namespaces - An Iterator over the element's namespaces thatare going out of scope.
See Also:   XMLEventFactory.createEndElement(QNameIterator)
throws:
  XMLStreamException - If an error occurs adding the event.



addIgnorableSpace
public void addIgnorableSpace(String content) throws XMLStreamException(Code)
Creates and adds an ignorable space Characters event.
Parameters:
  content - The ignorable whitespace, as perXMLEventFactory.createIgnorableSpace(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addSpace
public void addSpace(String content) throws XMLStreamException(Code)
Creates and adds a whitespace Characters event.
Parameters:
  content - The whitespace, as perXMLEventFactory.createIgnorableSpace(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addStartDocument
public void addStartDocument() throws XMLStreamException(Code)
Creates and adds a StartDocument event.
See Also:   XMLEventFactory.createStartDocument
throws:
  XMLStreamException - If an error occurs adding the event.



addStartDocument
public void addStartDocument(String encoding) throws XMLStreamException(Code)
Creates and adds a StartDocument event.
Parameters:
  encoding - The encoding to specify in the xml declaration.
See Also:   XMLEventFactory.createStartDocument(String)
throws:
  XMLStreamException - If an error occurs adding the event.



addStartDocument
public void addStartDocument(String encoding, String version) throws XMLStreamException(Code)
Creates and adds a StartDocument event.
Parameters:
  encoding - The encoding to include in the xml declaration.
Parameters:
  version - The XML version to include in the xml declaration.
See Also:   XMLEventFactory.createStartDocument(StringString)
throws:
  XMLStreamException - If an error occurs adding the event.



addStartDocument
public void addStartDocument(String encoding, String version, boolean standalone) throws XMLStreamException(Code)
Creates and adds a StartDocument event.
Parameters:
  encoding - The encoding to include in the xml declaration.
Parameters:
  version - The XML version to include in the xml declaration.
Parameters:
  standalone - The standalone value to include in the xml declaration.
See Also:   XMLEventFactory.createStartDocument(StringStringboolean)
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(String localName, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  localName - The local name of the element.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  localName - The local name of the element.
Parameters:
  attributes - An Iterator over the element's attributes.
Parameters:
  namespaces - An Iterator over the element's namespaces.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(String ns, String localName, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  ns - The element's namespace URI.
Parameters:
  localName - The local name of the element.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(String ns, String localName, Iterator attributes, Iterator namespaces, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  ns - The element's namespace URI.
Parameters:
  localName - The local name of the element.
Parameters:
  attributes - An Iterator over the element's attributes.
Parameters:
  namespaces - An Iterator over the element's namespaces.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(QName name, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  name - The qualified element name.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addStartElement
public void addStartElement(QName name, Iterator attributes, Iterator namespaces, NamespaceContext context) throws XMLStreamException(Code)
Creates and adds a StartElement event.
Parameters:
  name - The qualified element name.
Parameters:
  attributes - An Iterator over the element's attributes.
Parameters:
  namespaces - An Iterator over the element's namespaces.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding the event.



addText
public void addText(String content) throws XMLStreamException(Code)
Creates and adds a Characters event.
Parameters:
  content - The text content, as perXMLEventFactory.createCharacters(String).
throws:
  XMLStreamException - If an error occurs adding the event.



addTextElement
public void addTextElement(String name, String text, NamespaceContext context) throws XMLStreamException(Code)
Adds a simple text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The text content, which may be null
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, String text, NamespaceContext context) throws XMLStreamException(Code)
Adds a simple text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The text content, which may be null
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, boolean text, NamespaceContext context) throws XMLStreamException(Code)
Adds a boolean text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The boolean content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, boolean text, NamespaceContext context) throws XMLStreamException(Code)
Adds a boolean text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The boolean content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, int text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, int text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, long text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, long text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, float text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, float text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, double text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, double text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(String name, Number text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The unqualified element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



addTextElement
public void addTextElement(QName name, Number text, NamespaceContext context) throws XMLStreamException(Code)
Adds a text element with no attributes or namespace declarations.
Parameters:
  name - The element name.
Parameters:
  text - The element content.
Parameters:
  context - The element's NamespaceContext, or null.
throws:
  XMLStreamException - If an error occurs adding an event.



getConsumer
public XMLEventConsumer getConsumer()(Code)
Returns a reference to the underlying XMLEventConsumer to which events are added. The underlying XMLEventConsumer to which events areadded.



getEventFactory
public XMLEventFactory getEventFactory()(Code)
Returns a reference to the XMLEventFactory used to construct events. The XMLEventFactory used to construct events.



setConsumer
public void setConsumer(XMLEventConsumer consumer)(Code)
Sets the underlying XMLEventConsumer to which events are added.
Parameters:
  consumer - The new XMLEventConsumer.



setEventFactory
public void setEventFactory(XMLEventFactory factory)(Code)
Sets the XMLEventFactory used to construct events.
Parameters:
  factory - The new XMLEventFactory.



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.