public Marshaller getMarshaller ( boolean reuse ) throws JAXBException { if ( ! reuse || this . marshaller == null ) { Marshaller marshaller = context . createMarshaller ( ) ; marshaller . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , Boolean . TRUE ) ; marshaller . setProperty ( Marshaller . JAXB_ENCODING , "UTF-8" ) ; this . marshaller = marshaller ; } return this . marshaller ; }
Returns the marshaller that converts a tree data structure from Java objects to XML .