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


java.lang.Object
   javax.xml.bind.helpers.AbstractMarshallerImpl
      com.sun.xml.bind.v2.runtime.MarshallerImpl

MarshallerImpl
final public class MarshallerImpl extends AbstractMarshallerImpl implements ValidationEventHandler(Code)
Implementation of Marshaller interface for the JAXB RI.

Eventually all the MarshallerImpl.marshal methods call into the MarshallerImpl.write method.
author:
   Kohsuke Kawaguchi
author:
   Vivek Pandey



Field Summary
final protected static  StringC14N
    
final protected static  StringENCODING_HANDLER
    
final protected static  StringENCODING_HANDLER2
    
final protected static  StringINDENT_STRING
    
final protected static  StringOBJECT_IDENTITY_CYCLE_DETECTION
    
final protected static  StringPREFIX_MAPPER
    
final protected static  StringXMLDECLARATION
    
final protected static  StringXML_HEADERS
    
final  JAXBContextImplcontext
    
final protected  XMLSerializerserializer
    

Constructor Summary
public  MarshallerImpl(JAXBContextImpl c, AssociationMap assoc)
    

Method Summary
protected  CharacterEscapeHandlercreateEscapeHandler(String encoding)
    
final  RunnablecreatePostInitAction(Result result)
     Creates an appropriate post-init action object.
public  XmlOutputcreateWriter(Writer w, String encoding)
    
public  XmlOutputcreateWriter(Writer w)
    
public  XmlOutputcreateWriter(OutputStream os)
    
public  XmlOutputcreateWriter(OutputStream os, String encoding)
    
final  XmlOutputcreateXmlOutput(Result result)
     Creates XmlOutput from the given Result object.
public  AgetAdapter(Class<A> type)
    
public  AttachmentMarshallergetAttachmentMarshaller()
    
public  JAXBContextImplgetContext()
    
public  ListenergetListener()
    
public  ObjectgetProperty(String name)
    
public  SchemagetSchema()
    
public  booleanhandleEvent(ValidationEvent event)
     Default error handling behavior fot Marshaller .
public  voidmarshal(Object obj, OutputStream out, NamespaceContext inscopeNamespace)
     Marshals to OutputStream with the given in-scope namespaces taken into account.
public  voidmarshal(Object obj, XMLStreamWriter writer)
    
public  voidmarshal(Object obj, XMLEventWriter writer)
    
public  voidmarshal(Object obj, XmlOutput output)
    
public  voidmarshal(Object target, Result result)
    
public  voidsetAdapter(Class<A> type, A adapter)
    
public  voidsetAttachmentMarshaller(AttachmentMarshaller am)
    
public  voidsetListener(Listener listener)
    
public  voidsetProperty(String name, Object value)
    
public  voidsetSchema(Schema s)
    
final protected  voidwrite(Name rootTagName, JaxBeanInfo<T> bi, T obj, XmlOutput out, Runnable postInitAction)
     Used by BridgeImpl to write an arbitrary object as a fragment.

Field Detail
C14N
final protected static String C14N(Code)



ENCODING_HANDLER
final protected static String ENCODING_HANDLER(Code)



ENCODING_HANDLER2
final protected static String ENCODING_HANDLER2(Code)



INDENT_STRING
final protected static String INDENT_STRING(Code)



OBJECT_IDENTITY_CYCLE_DETECTION
final protected static String OBJECT_IDENTITY_CYCLE_DETECTION(Code)



PREFIX_MAPPER
final protected static String PREFIX_MAPPER(Code)



XMLDECLARATION
final protected static String XMLDECLARATION(Code)



XML_HEADERS
final protected static String XML_HEADERS(Code)



context
final JAXBContextImpl context(Code)
reference to the context that created this object



serializer
final protected XMLSerializer serializer(Code)




Constructor Detail
MarshallerImpl
public MarshallerImpl(JAXBContextImpl c, AssociationMap assoc)(Code)

Parameters:
  assoc - non-null if the marshaller is working inside BinderImpl.




Method Detail
createEscapeHandler
protected CharacterEscapeHandler createEscapeHandler(String encoding)(Code)



createPostInitAction
final Runnable createPostInitAction(Result result)(Code)
Creates an appropriate post-init action object.



createWriter
public XmlOutput createWriter(Writer w, String encoding)(Code)



createWriter
public XmlOutput createWriter(Writer w)(Code)



createWriter
public XmlOutput createWriter(OutputStream os) throws JAXBException(Code)



createWriter
public XmlOutput createWriter(OutputStream os, String encoding) throws JAXBException(Code)



createXmlOutput
final XmlOutput createXmlOutput(Result result) throws JAXBException(Code)
Creates XmlOutput from the given Result object.



getAdapter
public A getAdapter(Class<A> type)(Code)



getAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()(Code)



getContext
public JAXBContextImpl getContext()(Code)



getListener
public Listener getListener()(Code)



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



getSchema
public Schema getSchema()(Code)



handleEvent
public boolean handleEvent(ValidationEvent event)(Code)
Default error handling behavior fot Marshaller .



marshal
public void marshal(Object obj, OutputStream out, NamespaceContext inscopeNamespace) throws JAXBException(Code)
Marshals to OutputStream with the given in-scope namespaces taken into account.
since:
   2.1.5



marshal
public void marshal(Object obj, XMLStreamWriter writer) throws JAXBException(Code)



marshal
public void marshal(Object obj, XMLEventWriter writer) throws JAXBException(Code)



marshal
public void marshal(Object obj, XmlOutput output) throws JAXBException(Code)



marshal
public void marshal(Object target, Result result) throws JAXBException(Code)



setAdapter
public void setAdapter(Class<A> type, A adapter)(Code)



setAttachmentMarshaller
public void setAttachmentMarshaller(AttachmentMarshaller am)(Code)



setListener
public void setListener(Listener listener)(Code)



setProperty
public void setProperty(String name, Object value) throws PropertyException(Code)



setSchema
public void setSchema(Schema s)(Code)



write
final protected void write(Name rootTagName, JaxBeanInfo<T> bi, T obj, XmlOutput out, Runnable postInitAction) throws JAXBException(Code)
Used by BridgeImpl to write an arbitrary object as a fragment.



Methods inherited from javax.xml.bind.helpers.AbstractMarshallerImpl
public A getAdapter(Class<A> type)(Code)(Java Doc)
public AttachmentMarshaller getAttachmentMarshaller()(Code)(Java Doc)
protected String getEncoding()(Code)(Java Doc)
public ValidationEventHandler getEventHandler() throws JAXBException(Code)(Java Doc)
protected String getJavaEncoding(String encoding) throws UnsupportedEncodingException(Code)(Java Doc)
public Listener getListener()(Code)(Java Doc)
protected String getNoNSSchemaLocation()(Code)(Java Doc)
public org.w3c.dom.Node getNode(Object obj) throws JAXBException(Code)(Java Doc)
public Object getProperty(String name) throws PropertyException(Code)(Java Doc)
public Schema getSchema()(Code)(Java Doc)
protected String getSchemaLocation()(Code)(Java Doc)
protected boolean isFormattedOutput()(Code)(Java Doc)
protected boolean isFragment()(Code)(Java Doc)
final public void marshal(Object obj, java.io.OutputStream os) throws JAXBException(Code)(Java Doc)
final public void marshal(Object obj, java.io.Writer w) throws JAXBException(Code)(Java Doc)
final public void marshal(Object obj, org.xml.sax.ContentHandler handler) throws JAXBException(Code)(Java Doc)
final public void marshal(Object obj, org.w3c.dom.Node node) throws JAXBException(Code)(Java Doc)
public void marshal(Object obj, XMLEventWriter writer) throws JAXBException(Code)(Java Doc)
public void marshal(Object obj, XMLStreamWriter writer) throws JAXBException(Code)(Java Doc)
public void setAdapter(XmlAdapter adapter)(Code)(Java Doc)
public void setAdapter(Class<A> type, A adapter)(Code)(Java Doc)
public void setAttachmentMarshaller(AttachmentMarshaller am)(Code)(Java Doc)
protected void setEncoding(String encoding)(Code)(Java Doc)
public void setEventHandler(ValidationEventHandler handler) throws JAXBException(Code)(Java Doc)
protected void setFormattedOutput(boolean v)(Code)(Java Doc)
protected void setFragment(boolean v)(Code)(Java Doc)
public void setListener(Listener listener)(Code)(Java Doc)
protected void setNoNSSchemaLocation(String location)(Code)(Java Doc)
public void setProperty(String name, Object value) throws PropertyException(Code)(Java Doc)
public void setSchema(Schema schema)(Code)(Java Doc)
protected void setSchemaLocation(String location)(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.