Class MarshallerImpl

  • All Implemented Interfaces:
    javax.xml.bind.Marshaller

    public class MarshallerImpl
    extends javax.xml.bind.helpers.AbstractMarshallerImpl
    Implementation of Marshaller interface for JAXB RI.
    Author:
    Kohsuke Kawaguchi, Vivek Pandey
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.xml.bind.Marshaller

        javax.xml.bind.Marshaller.Listener
    • Field Summary

      • Fields inherited from interface javax.xml.bind.Marshaller

        JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION
    • Method Detail

      • marshal

        public void marshal​(Object obj,
                            Result result)
                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • createEscapeHandler

        protected com.sun.xml.bind.marshaller.CharacterEscapeHandler createEscapeHandler​(String encoding)
      • createWriter

        public com.sun.xml.bind.marshaller.XMLWriter createWriter​(Writer w,
                                                                  String encoding)
                                                           throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • createWriter

        public com.sun.xml.bind.marshaller.XMLWriter createWriter​(Writer w)
                                                           throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • createWriter

        public com.sun.xml.bind.marshaller.XMLWriter createWriter​(OutputStream os)
                                                           throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • createWriter

        public com.sun.xml.bind.marshaller.XMLWriter createWriter​(OutputStream os,
                                                                  String encoding)
                                                           throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • getProperty

        public Object getProperty​(String name)
                           throws javax.xml.bind.PropertyException
        Specified by:
        getProperty in interface javax.xml.bind.Marshaller
        Overrides:
        getProperty in class javax.xml.bind.helpers.AbstractMarshallerImpl
        Throws:
        javax.xml.bind.PropertyException
      • setProperty

        public void setProperty​(String name,
                                Object value)
                         throws javax.xml.bind.PropertyException
        Specified by:
        setProperty in interface javax.xml.bind.Marshaller
        Overrides:
        setProperty in class javax.xml.bind.helpers.AbstractMarshallerImpl
        Throws:
        javax.xml.bind.PropertyException