Java Doc for UTF8StreamWriter.java in  » XML » jibx-1.1.5 » org » jibx » runtime » impl » 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 » jibx 1.1.5 » org.jibx.runtime.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.runtime.impl.XMLWriterNamespaceBase
      org.jibx.runtime.impl.XMLWriterBase
         org.jibx.runtime.impl.StreamWriterBase
            org.jibx.runtime.impl.UTF8StreamWriter

UTF8StreamWriter
public class UTF8StreamWriter extends StreamWriterBase (Code)
Handler for marshalling text document to a UTF-8 output stream.
author:
   Dennis M. Sosnoski
version:
   1.0



Constructor Summary
public  UTF8StreamWriter(String[] uris)
     Constructor.
public  UTF8StreamWriter(UTF8StreamWriter base, String[] uris)
     Copy constructor.

Method Summary
public  IXMLWritercreateChildWriter(String[] uris)
     Create a child writer instance to be used for a separate binding.
protected  voiddefineNamespace(int index, String prefix)
     Report that namespace has been defined.
protected  voidwriteAttributeText(String text)
     Write attribute text to output.
public  voidwriteCData(String text)
     Write CDATA text to document.
protected  voidwriteMarkup(String text)
     Write markup text to output.
protected  voidwriteMarkup(char chr)
     Write markup character to output.
public  voidwriteTextContent(String text)
     Write ordinary character data text content to document.


Constructor Detail
UTF8StreamWriter
public UTF8StreamWriter(String[] uris)(Code)
Constructor.
Parameters:
  uris - ordered array of URIs for namespaces used in document (mustbe constant; the value in position 0 must always be the empty string "",and the value in position 1 must always be the XML namespace"http://www.w3.org/XML/1998/namespace")



UTF8StreamWriter
public UTF8StreamWriter(UTF8StreamWriter base, String[] uris)(Code)
Copy constructor. This takes the stream from a supplied instance, while setting a new array of namespace URIs. It's intended for use when invoking one binding from within another binding.
Parameters:
  base - instance to be used as base for writer
Parameters:
  uris - ordered array of URIs for namespaces used in document(see UTF8StreamWriter.UTF8StreamWriter(String[]))




Method Detail
createChildWriter
public IXMLWriter createChildWriter(String[] uris)(Code)
Create a child writer instance to be used for a separate binding. The child writer inherits the stream and encoding from this writer, while using the supplied namespace URIs.
Parameters:
  uris - ordered array of URIs for namespaces used in document(see UTF8StreamWriter.UTF8StreamWriter(String[])) child writer



defineNamespace
protected void defineNamespace(int index, String prefix)(Code)
Report that namespace has been defined.
Parameters:
  index - namespace URI index number
Parameters:
  prefix - prefix used for namespace



writeAttributeText
protected void writeAttributeText(String text) throws IOException(Code)
Write attribute text to output. This needs to write the text with any appropriate escaping.
Parameters:
  text - attribute value text to be written
throws:
  IOException - if error writing to document



writeCData
public void writeCData(String text) throws IOException(Code)
Write CDATA text to document.
Parameters:
  text - content value text
throws:
  IOException - on error writing to document



writeMarkup
protected void writeMarkup(String text) throws IOException(Code)
Write markup text to output. Markup text can be written directly to the output without the need for any escaping, but still needs to be properly encoded.
Parameters:
  text - markup text to be written
throws:
  IOException - if error writing to document



writeMarkup
protected void writeMarkup(char chr) throws IOException(Code)
Write markup character to output. Markup text can be written directly to the output without the need for any escaping, but still needs to be properly encoded.
Parameters:
  chr - markup character to be written
throws:
  IOException - if error writing to document



writeTextContent
public void writeTextContent(String text) throws IOException(Code)
Write ordinary character data text content to document.
Parameters:
  text - content value text
throws:
  IOException - on error writing to document



Fields inherited from org.jibx.runtime.impl.StreamWriterBase
final protected static byte[] AMP_ENTITY(Code)(Java Doc)
final protected static byte[] GT_ENTITY(Code)(Java Doc)
final protected static byte[] LT_CDATAEND(Code)(Java Doc)
final protected static byte[] LT_CDATASTART(Code)(Java Doc)
final protected static byte[] LT_ENTITY(Code)(Java Doc)
final protected static byte[] QUOT_ENTITY(Code)(Java Doc)
protected byte[] m_buffer(Code)(Java Doc)
protected byte[][][] m_extensionBytes(Code)(Java Doc)
protected int m_fillOffset(Code)(Java Doc)
protected byte[][] m_prefixBytes(Code)(Java Doc)

Methods inherited from org.jibx.runtime.impl.StreamWriterBase
public void close() throws IOException(Code)(Java Doc)
public void flush() throws IOException(Code)(Java Doc)
public void indent(int bias) throws IOException(Code)(Java Doc)
public void indent() throws IOException(Code)(Java Doc)
protected void makeSpace(int length) throws IOException(Code)(Java Doc)
public void popExtensionNamespaces()(Code)(Java Doc)
public void pushExtensionNamespaces(String[] uris)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setIndentSpaces(int count, String newline, char indent)(Code)(Java Doc)
public void setOutput(OutputStream outs)(Code)(Java Doc)
protected void undefineNamespace(int index)(Code)(Java Doc)
protected int writeEntity(byte[] bytes, int offset)(Code)(Java Doc)
protected void writePrefix(int index) throws IOException(Code)(Java Doc)

Methods inherited from org.jibx.runtime.impl.XMLWriterBase
public void addAttribute(int index, String name, String value) throws IOException(Code)(Java Doc)
abstract public void close() throws IOException(Code)(Java Doc)
public void closeEmptyTag() throws IOException(Code)(Java Doc)
public void closeStartTag() throws IOException(Code)(Java Doc)
abstract public IXMLWriter createChildWriter(String[] uris)(Code)(Java Doc)
public void endTag(int index, String name) throws IOException(Code)(Java Doc)
final protected void flagContent() throws IOException(Code)(Java Doc)
final protected void flagTextContent() throws IOException(Code)(Java Doc)
abstract public void flush() throws IOException(Code)(Java Doc)
abstract protected void indent(int bias) throws IOException(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void startTagClosed(int index, String name) throws IOException(Code)(Java Doc)
public void startTagNamespaces(int index, String name, int[] nums, String[] prefs) throws IOException(Code)(Java Doc)
public void startTagOpen(int index, String name) throws IOException(Code)(Java Doc)
abstract protected void writeAttributeText(String text) throws IOException(Code)(Java Doc)
public void writeComment(String text) throws IOException(Code)(Java Doc)
public void writeDocType(String name, String sys, String pub, String subset) throws IOException(Code)(Java Doc)
public void writeEntityRef(String name) throws IOException(Code)(Java Doc)
abstract protected void writeMarkup(String text) throws IOException(Code)(Java Doc)
abstract protected void writeMarkup(char chr) throws IOException(Code)(Java Doc)
public void writePI(String target, String data) throws IOException(Code)(Java Doc)
abstract protected void writePrefix(int index) throws IOException(Code)(Java Doc)
public void writeXMLDecl(String version, String encoding, String standalone) throws IOException(Code)(Java Doc)

Fields inherited from org.jibx.runtime.impl.XMLWriterNamespaceBase
protected String[] m_prefixes(Code)(Java Doc)
protected String[] m_uris(Code)(Java Doc)

Methods inherited from org.jibx.runtime.impl.XMLWriterNamespaceBase
protected void decrementNesting()(Code)(Java Doc)
abstract protected void defineNamespace(int index, String prefix) throws IOException(Code)(Java Doc)
final public String[][] getExtensionNamespaces()(Code)(Java Doc)
final public int getNamespaceCount()(Code)(Java Doc)
final public String getNamespacePrefix(int index)(Code)(Java Doc)
final public String getNamespaceUri(int index)(Code)(Java Doc)
final public String[] getNamespaces()(Code)(Java Doc)
final public int getNestingDepth()(Code)(Java Doc)
final public int getPrefixIndex(String prefix)(Code)(Java Doc)
protected static String[][] growArray(String[][] base, String[] items)(Code)(Java Doc)
protected void incrementNesting()(Code)(Java Doc)
public int[] openNamespaces(int[] nums, String[] prefs) throws IOException(Code)(Java Doc)
public void popExtensionNamespaces()(Code)(Java Doc)
public void pushExtensionNamespaces(String[] uris)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
protected static String[][] shrinkArray(String[][] base)(Code)(Java Doc)
abstract protected void undefineNamespace(int index)(Code)(Java Doc)

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.