com.sun.xml.bind.v2.runtime
public final class MarshallerImpl extends AbstractMarshallerImpl implements ValidationEventHandler
Eventually all the MarshallerImpl methods call into the MarshallerImpl method.
| Field Summary | |
|---|---|
| JAXBContextImpl | context reference to the context that created this object |
| protected static String | C14N |
| protected static String | ENCODING_HANDLER |
| protected static String | ENCODING_HANDLER2 |
| protected static String | INDENT_STRING |
| protected static String | OBJECT_IDENTITY_CYCLE_DETECTION |
| protected static String | PREFIX_MAPPER |
| protected XMLSerializer | serializer |
| protected static String | XMLDECLARATION |
| protected static String | XML_HEADERS |
| Constructor Summary | |
|---|---|
| MarshallerImpl(JAXBContextImpl c, AssociationMap assoc) | |
| Method Summary | |
|---|---|
| protected CharacterEscapeHandler | createEscapeHandler(String encoding) |
| Runnable | createPostInitAction(Result result)
Creates an appropriate post-init action object. |
| XmlOutput | createWriter(Writer w, String encoding) |
| XmlOutput | createWriter(Writer w) |
| XmlOutput | createWriter(OutputStream os) |
| XmlOutput | createWriter(OutputStream os, String encoding) |
| XmlOutput | createXmlOutput(Result result)
Creates XmlOutput from the given Result object. |
| <A extends XmlAdapter> A | getAdapter(Class<A> type) |
| AttachmentMarshaller | getAttachmentMarshaller() |
| JAXBContextImpl | getContext() |
| Listener | getListener() |
| Object | getProperty(String name) |
| Schema | getSchema() |
| boolean | handleEvent(ValidationEvent event)
Default error handling behavior fot Marshaller. |
| void | marshal(Object obj, OutputStream out, NamespaceContext inscopeNamespace)
Marshals to OutputStream with the given in-scope namespaces
taken into account.
|
| void | marshal(Object obj, XMLStreamWriter writer) |
| void | marshal(Object obj, XMLEventWriter writer) |
| void | marshal(Object obj, XmlOutput output) |
| void | marshal(Object target, Result result) |
| <A extends XmlAdapter> void | setAdapter(Class<A> type, A adapter) |
| void | setAttachmentMarshaller(AttachmentMarshaller am) |
| void | setListener(Listener listener) |
| void | setProperty(String name, Object value) |
| void | setSchema(Schema s) |
| protected <T> void | write(Name rootTagName, JaxBeanInfo<T> bi, T obj, XmlOutput out, Runnable postInitAction)
Used by BridgeImpl to write an arbitrary object as a fragment. |
Parameters: assoc non-null if the marshaller is working inside BinderImpl.
Since: 2.1.5