public abstract class AbstractMarshallerImpl extends Object implements Marshaller
Marshaller.Listener
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION
Constructor and Description |
---|
AbstractMarshallerImpl() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
marshal
public void marshal(Object obj, File file) throws JAXBException
marshal
in interface Marshaller
JAXBException
public final void marshal(Object obj, OutputStream os) throws JAXBException
marshal
in interface Marshaller
JAXBException
public final void marshal(Object obj, Writer w) throws JAXBException
marshal
in interface Marshaller
JAXBException
public final void marshal(Object obj, ContentHandler handler) throws JAXBException
marshal
in interface Marshaller
JAXBException
public final void marshal(Object obj, Node node) throws JAXBException
marshal
in interface Marshaller
JAXBException
public Node getNode(Object obj) throws JAXBException
getNode
in interface Marshaller
JAXBException
protected String getEncoding()
protected void setEncoding(String encoding)
protected String getSchemaLocation()
protected void setSchemaLocation(String location)
protected String getNoNSSchemaLocation()
protected void setNoNSSchemaLocation(String location)
protected boolean isFormattedOutput()
protected void setFormattedOutput(boolean v)
protected boolean isFragment()
protected void setFragment(boolean v)
protected String getJavaEncoding(String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public void setProperty(String name, Object value) throws PropertyException
setProperty
in interface Marshaller
PropertyException
public Object getProperty(String name) throws PropertyException
getProperty
in interface Marshaller
PropertyException
public ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler
in interface Marshaller
JAXBException
public void setEventHandler(ValidationEventHandler handler) throws JAXBException
setEventHandler
in interface Marshaller
JAXBException
public void marshal(Object obj, javax.xml.stream.XMLEventWriter writer) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object obj, javax.xml.stream.XMLStreamWriter writer) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void setSchema(Schema schema)
setSchema
in interface Marshaller
public Schema getSchema()
getSchema
in interface Marshaller
public void setAdapter(XmlAdapter adapter)
setAdapter
in interface Marshaller
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter
in interface Marshaller
public <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter
in interface Marshaller
public void setAttachmentMarshaller(AttachmentMarshaller am)
setAttachmentMarshaller
in interface Marshaller
public AttachmentMarshaller getAttachmentMarshaller()
getAttachmentMarshaller
in interface Marshaller
public void setListener(Marshaller.Listener listener)
setListener
in interface Marshaller
public Marshaller.Listener getListener()
getListener
in interface Marshaller
Copyright © 2015. All rights reserved.