Java Doc for UTF8XmlOutput.java in  » 6.0-JDK-Modules » jaxb-impl » com » sun » xml » bind » v2 » runtime » output » 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 » 6.0 JDK Modules » jaxb impl » com.sun.xml.bind.v2.runtime.output 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
      com.sun.xml.bind.v2.runtime.output.UTF8XmlOutput

All known Subclasses:   com.sun.xml.bind.v2.runtime.output.C14nXmlOutput,  com.sun.xml.bind.v2.runtime.output.IndentingUTF8XmlOutput,
UTF8XmlOutput
public class UTF8XmlOutput extends XmlOutputAbstractImpl (Code)
XmlOutput implementation specialized for UTF-8.
author:
   Kohsuke Kawaguchi
author:
   Paul Sandoz


Field Summary
protected  booleancloseStartTagPending
     Set to true to indicate that we need to write '>' to close a start tag.
final protected  byte[]octetBuffer
     Buffer of octets for writing.
protected  intoctetBufferIndex
     Index in buffer to write to.
final protected  OutputStreamout
    

Constructor Summary
public  UTF8XmlOutput(OutputStream out, Encoded[] localNames)
    

Method Summary
public  voidattribute(Name name, String value)
    
public  voidattribute(int prefix, String localName, String value)
    
public  voidbeginStartTag(int prefix, String localName)
    
public  voidbeginStartTag(Name name)
    
final protected  voidcloseStartTag()
     Writes '>' to close the start tag, if necessary.
public  voidendDocument(boolean fragment)
    
public  voidendStartTag()
    
public  voidendTag(Name name)
    
public  voidendTag(int prefix, String localName)
    
final protected  voidflushBuffer()
    
public  voidsetHeader(String header)
    
public  voidstartDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext)
    
public  voidtext(String value, boolean needSP)
    
public  voidtext(Pcdata value, boolean needSP)
    
final public  voidtext(int value)
    
public  voidtext(byte[] data, int dataLen)
     Writes the given byte[] as base64 encoded binary to the output.
static  byte[]toBytes(String s)
    
final public  voidwrite(int i)
     Writes one byte directly into the buffer.
final protected  voidwrite(byte[] b)
    
final protected  voidwrite(byte[] b, int start, int length)
    
final protected  voidwriteNsDecl(int prefixIndex)
     Writes a single namespace declaration for the specified prefix.
protected  voidwriteNsDecls(int base)
    

Field Detail
closeStartTagPending
protected boolean closeStartTagPending(Code)
Set to true to indicate that we need to write '>' to close a start tag. Deferring the write of this char allows us to write "/>" for empty elements.



octetBuffer
final protected byte[] octetBuffer(Code)
Buffer of octets for writing.



octetBufferIndex
protected int octetBufferIndex(Code)
Index in buffer to write to.



out
final protected OutputStream out(Code)




Constructor Detail
UTF8XmlOutput
public UTF8XmlOutput(OutputStream out, Encoded[] localNames)(Code)

Parameters:
  localNames - local names encoded in UTF-8.




Method Detail
attribute
public void attribute(Name name, String value) throws IOException(Code)



attribute
public void attribute(int prefix, String localName, String value) throws IOException(Code)



beginStartTag
public void beginStartTag(int prefix, String localName) throws IOException(Code)



beginStartTag
public void beginStartTag(Name name) throws IOException(Code)



closeStartTag
final protected void closeStartTag() throws IOException(Code)
Writes '>' to close the start tag, if necessary.



endDocument
public void endDocument(boolean fragment) throws IOException, SAXException, XMLStreamException(Code)



endStartTag
public void endStartTag() throws IOException(Code)



endTag
public void endTag(Name name) throws IOException(Code)



endTag
public void endTag(int prefix, String localName) throws IOException(Code)



flushBuffer
final protected void flushBuffer() throws IOException(Code)



setHeader
public void setHeader(String header)(Code)



startDocument
public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws IOException, SAXException, XMLStreamException(Code)



text
public void text(String value, boolean needSP) throws IOException(Code)



text
public void text(Pcdata value, boolean needSP) throws IOException(Code)



text
final public void text(int value) throws IOException(Code)



text
public void text(byte[] data, int dataLen) throws IOException(Code)
Writes the given byte[] as base64 encoded binary to the output.

Being defined on this class allows this method to access the buffer directly, which translates to a better performance.




toBytes
static byte[] toBytes(String s)(Code)



write
final public void write(int i) throws IOException(Code)
Writes one byte directly into the buffer.

This method can be used somewhat like the text method, but it doesn't perform character escaping.




write
final protected void write(byte[] b) throws IOException(Code)



write
final protected void write(byte[] b, int start, int length) throws IOException(Code)



writeNsDecl
final protected void writeNsDecl(int prefixIndex) throws IOException(Code)
Writes a single namespace declaration for the specified prefix.



writeNsDecls
protected void writeNsDecls(int base) throws IOException(Code)



Fields inherited from com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
protected NamespaceContextImpl nsContext(Code)(Java Doc)
protected int[] nsUriIndex2prefixIndex(Code)(Java Doc)
protected XMLSerializer serializer(Code)(Java Doc)

Methods inherited from com.sun.xml.bind.v2.runtime.output.XmlOutputAbstractImpl
public void attribute(Name name, String value) throws IOException, XMLStreamException(Code)(Java Doc)
abstract public void attribute(int prefix, String localName, String value) throws IOException, XMLStreamException(Code)(Java Doc)
public void beginStartTag(Name name) throws IOException, XMLStreamException(Code)(Java Doc)
abstract public void beginStartTag(int prefix, String localName) throws IOException, XMLStreamException(Code)(Java Doc)
public void endDocument(boolean fragment) throws IOException, SAXException, XMLStreamException(Code)(Java Doc)
abstract public void endStartTag() throws IOException, SAXException(Code)(Java Doc)
public void endTag(Name name) throws IOException, SAXException, XMLStreamException(Code)(Java Doc)
abstract public void endTag(int prefix, String localName) throws IOException, SAXException, XMLStreamException(Code)(Java Doc)
public void startDocument(XMLSerializer serializer, boolean fragment, int[] nsUriIndex2prefixIndex, NamespaceContextImpl nsContext) throws IOException, SAXException, XMLStreamException(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)

w___ww.__j___a__v__a___2___s_.__c_o___m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.