/** * Returns the marshaller that converts a tree data structure * from Java objects to XML, reusing any existing marshaller. * @return the marshaller for the JAXB context * @throws JAXBException if marshaller initialization fails */ public Marshaller getMarshaller() throws JAXBException { return getMarshaller(true); } /**
/** * Returns the marshaller that converts a tree data structure * from Java objects to XML, reusing any existing marshaller. * @return the marshaller for the JAXB context */ public Marshaller getMarshaller() throws JAXBException { return getMarshaller(true); } /**
@Override public void write(OutputStream out) throws IOException { try { getMarshaller().marshal(content, out); } catch (JAXBException e) { logger.error("Failed to marshall object for writing to database document",e); throw new MarkLogicIOException(e); } }
@Override public void write(OutputStream out) throws IOException { try { getMarshaller().marshal(content, out); } catch (JAXBException e) { logger.error("Failed to marshall object for writing to database document",e); throw new MarkLogicIOException(e); } }