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


java.lang.Object
   javanet.staxutils.io.StAXStreamWriter

StAXStreamWriter
public class StAXStreamWriter implements XMLStreamWriter(Code)
An XMLStreamWriter implementation that writes to a character stream.
author:
   Christian Niles
version:
   $Revision: 1.1 $



Constructor Summary
public  StAXStreamWriter(OutputStream stream)
     Constructs a StAXStreamWriter that writes to the provided OutputStream using the platform default encoding.
public  StAXStreamWriter(OutputStream stream, String encoding)
     Constructs a StAXStreamWriter that writes to the provided OutputStream using the specified encoding.
public  StAXStreamWriter(Writer writer)
     Constructs a StAXStreamWriter that writes to the provided Writer .
public  StAXStreamWriter(Writer writer, NamespaceContext rootContext)
     Constructs a StAXStreamWriter that writes to the provided Writer .

Method Summary
public synchronized  voidclose()
    
protected  voidcloseElementContext()
     Closes the current ElementContext , writing any cached content and making it read-only.
public synchronized  voidflush()
    
public synchronized  StringgetCurrentPath()
     Returns the current position of the writer as a path of QName strings.
public  NamespaceContextgetNamespaceContext()
    
public  StringgetPrefix(String uri)
    
public  ObjectgetProperty(String name)
    
public synchronized  voidsetDefaultNamespace(String uri)
    
public  voidsetNamespaceContext(NamespaceContext context)
    
public synchronized  voidsetPrefix(String prefix, String uri)
    
public synchronized  voidwriteAttribute(QName name, String value)
    
public  voidwriteAttribute(String prefix, String namespaceURI, String localName, String value)
    
public  voidwriteAttribute(String namespaceURI, String localName, String value)
    
public  voidwriteAttribute(String localName, String value)
    
public synchronized  voidwriteCData(String data)
    
public synchronized  voidwriteCharacters(char[] text, int start, int len)
    
public synchronized  voidwriteCharacters(String text)
    
public synchronized  voidwriteComment(String data)
    
public synchronized  voidwriteDTD(String dtd)
    
public  voidwriteDefaultNamespace(String namespaceURI)
    
public  voidwriteEmptyElement(String prefix, String localName, String namespaceURI)
    
public  voidwriteEmptyElement(String namespaceURI, String localName)
    
public  voidwriteEmptyElement(String localName)
    
public synchronized  voidwriteEndDocument()
    
public synchronized  voidwriteEndElement()
    
public synchronized  voidwriteEntityRef(String name)
    
public synchronized  voidwriteNamespace(String prefix, String namespaceURI)
    
public synchronized  voidwriteProcessingInstruction(String target, String data)
    
public  voidwriteProcessingInstruction(String target)
    
public  voidwriteStartDocument()
    
public  voidwriteStartDocument(String version)
    
public synchronized  voidwriteStartDocument(String encoding, String version)
    
public synchronized  voidwriteStartElement(String prefix, String localName, String namespaceURI, boolean isEmpty)
     Core start tag output method called by all other writeXXXElement methods.
public  voidwriteStartElement(String prefix, String localName, String namespaceURI)
    
public  voidwriteStartElement(String namespaceURI, String localName)
    
public  voidwriteStartElement(String localName)
    


Constructor Detail
StAXStreamWriter
public StAXStreamWriter(OutputStream stream)(Code)
Constructs a StAXStreamWriter that writes to the provided OutputStream using the platform default encoding.
Parameters:
  stream - The destination stream.



StAXStreamWriter
public StAXStreamWriter(OutputStream stream, String encoding) throws UnsupportedEncodingException(Code)
Constructs a StAXStreamWriter that writes to the provided OutputStream using the specified encoding.
Parameters:
  stream - The destination stream.
Parameters:
  encoding - The output encoding.
throws:
  UnsupportedEncodingException - If the encoding isn't supported.



StAXStreamWriter
public StAXStreamWriter(Writer writer)(Code)
Constructs a StAXStreamWriter that writes to the provided Writer .
Parameters:
  writer - The destination Writer instance.



StAXStreamWriter
public StAXStreamWriter(Writer writer, NamespaceContext rootContext)(Code)
Constructs a StAXStreamWriter that writes to the provided Writer .
Parameters:
  writer - The destination Writer instance.
Parameters:
  rootContext - The root namespace context.




Method Detail
close
public synchronized void close() throws XMLStreamException(Code)



closeElementContext
protected void closeElementContext() throws XMLStreamException(Code)
Closes the current ElementContext , writing any cached content and making it read-only. If the current context is empty, it will be popped and replaced with its parent context. If no context is open, this method has no effects.
throws:
  XMLStreamException - If an error occurs flushing any element content.



flush
public synchronized void flush() throws XMLStreamException(Code)



getCurrentPath
public synchronized String getCurrentPath()(Code)
Returns the current position of the writer as a path of QName strings. The current position of the writer.



getNamespaceContext
public NamespaceContext getNamespaceContext()(Code)



getPrefix
public String getPrefix(String uri) throws XMLStreamException(Code)



getProperty
public Object getProperty(String name) throws IllegalArgumentException(Code)



setDefaultNamespace
public synchronized void setDefaultNamespace(String uri) throws XMLStreamException(Code)



setNamespaceContext
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException(Code)



setPrefix
public synchronized void setPrefix(String prefix, String uri) throws XMLStreamException(Code)



writeAttribute
public synchronized void writeAttribute(QName name, String value) throws XMLStreamException(Code)



writeAttribute
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException(Code)



writeAttribute
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException(Code)



writeAttribute
public void writeAttribute(String localName, String value) throws XMLStreamException(Code)



writeCData
public synchronized void writeCData(String data) throws XMLStreamException(Code)



writeCharacters
public synchronized void writeCharacters(char[] text, int start, int len) throws XMLStreamException(Code)



writeCharacters
public synchronized void writeCharacters(String text) throws XMLStreamException(Code)



writeComment
public synchronized void writeComment(String data) throws XMLStreamException(Code)



writeDTD
public synchronized void writeDTD(String dtd) throws XMLStreamException(Code)



writeDefaultNamespace
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException(Code)



writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException(Code)



writeEmptyElement
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException(Code)



writeEmptyElement
public void writeEmptyElement(String localName) throws XMLStreamException(Code)



writeEndDocument
public synchronized void writeEndDocument() throws XMLStreamException(Code)



writeEndElement
public synchronized void writeEndElement() throws XMLStreamException(Code)



writeEntityRef
public synchronized void writeEntityRef(String name) throws XMLStreamException(Code)



writeNamespace
public synchronized void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException(Code)



writeProcessingInstruction
public synchronized void writeProcessingInstruction(String target, String data) throws XMLStreamException(Code)



writeProcessingInstruction
public void writeProcessingInstruction(String target) throws XMLStreamException(Code)



writeStartDocument
public void writeStartDocument() throws XMLStreamException(Code)



writeStartDocument
public void writeStartDocument(String version) throws XMLStreamException(Code)



writeStartDocument
public synchronized void writeStartDocument(String encoding, String version) throws XMLStreamException(Code)



writeStartElement
public synchronized void writeStartElement(String prefix, String localName, String namespaceURI, boolean isEmpty) throws XMLStreamException(Code)
Core start tag output method called by all other writeXXXElement methods.
Parameters:
  prefix - The tag prefix.
Parameters:
  localName - The tag local name.
Parameters:
  namespaceURI - The namespace URI of the prefix.
Parameters:
  isEmpty - Whether the tag is empty.
throws:
  XMLStreamException - If an error occurs writing the tag to the stream.



writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException(Code)



writeStartElement
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException(Code)



writeStartElement
public void writeStartElement(String localName) throws XMLStreamException(Code)



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.