Tabnine Logo
JaxbXmlPart.marshal
Code IndexAdd Tabnine to your IDE (free)

How to use
marshal
method
in
org.docx4j.openpackaging.parts.JaxbXmlPart

Best Java code snippets using org.docx4j.openpackaging.parts.JaxbXmlPart.marshal (Showing top 14 results out of 315)

origin: plutext/docx4j

/**
 * Marshal the content tree rooted at <tt>jaxbElement</tt> into an output
 * stream, using org.docx4j.jaxb.NamespacePrefixMapper.
 * 
 * @param os
 *            XML will be added to this stream.
 * 
 * @throws JAXBException
 *             If any unexpected problem occurs during the marshalling.
 */
public void marshal(java.io.OutputStream os) throws JAXBException {
  
  marshal(os, NamespacePrefixMapperUtils.getPrefixMapper()  );
}
origin: plutext/docx4j

/**
 * Marshal the content tree rooted at <tt>jaxbElement</tt> into a DOM tree.
 * 
 * @param node
 *      DOM nodes will be added as children of this node.
 *      This parameter must be a Node that accepts children
 *      ({@link org.w3c.dom.Document},
 *      {@link  org.w3c.dom.DocumentFragment}, or
 *      {@link  org.w3c.dom.Element})
 * 
 * @throws JAXBException
 *      If any unexpected problem occurs during the marshalling.
 */
public void marshal(org.w3c.dom.Node node) throws JAXBException {
  
  marshal(node, NamespacePrefixMapperUtils.getPrefixMapper()  );
  
}
origin: plutext/docx4j

ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); 
try {
  marshal(baos);
  ((JaxbXmlPart)other).marshal(baos2);
} catch (JAXBException e) {
  throw new Docx4JException("Error marshalling parts", e);
origin: plutext/docx4j

part.marshal( fos );
fos.close();
origin: plutext/docx4j

((org.docx4j.openpackaging.parts.JaxbXmlPart)part).marshal( out );
origin: plutext/docx4j

org.w3c.dom.Document doc = org.docx4j.XmlUtils.neww3cDomDocument();            
try {
  this.marshal(doc);
} catch (JAXBException e) {
origin: plutext/docx4j

  part.marshal( zos );
} else {
origin: org.docx4j/docx4j

/**
 * Marshal the content tree rooted at <tt>jaxbElement</tt> into an output
 * stream, using org.docx4j.jaxb.NamespacePrefixMapper.
 * 
 * @param os
 *            XML will be added to this stream.
 * 
 * @throws JAXBException
 *             If any unexpected problem occurs during the marshalling.
 */
public void marshal(java.io.OutputStream os) throws JAXBException {
  
  marshal(os, NamespacePrefixMapperUtils.getPrefixMapper()  );
}
origin: org.docx4j/docx4j

/**
 * Marshal the content tree rooted at <tt>jaxbElement</tt> into a DOM tree.
 * 
 * @param node
 *      DOM nodes will be added as children of this node.
 *      This parameter must be a Node that accepts children
 *      ({@link org.w3c.dom.Document},
 *      {@link  org.w3c.dom.DocumentFragment}, or
 *      {@link  org.w3c.dom.Element})
 * 
 * @throws JAXBException
 *      If any unexpected problem occurs during the marshalling.
 */
public void marshal(org.w3c.dom.Node node) throws JAXBException {
  
  marshal(node, NamespacePrefixMapperUtils.getPrefixMapper()  );
  
}
origin: org.docx4j/docx4j

ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); 
try {
  marshal(baos);
  ((JaxbXmlPart)other).marshal(baos2);
} catch (JAXBException e) {
  throw new Docx4JException("Error marshalling parts", e);
origin: org.docx4j/docx4j

part.marshal( fos );
fos.close();
origin: org.docx4j/docx4j

((org.docx4j.openpackaging.parts.JaxbXmlPart)part).marshal( out );
origin: org.docx4j/docx4j

org.w3c.dom.Document doc = org.docx4j.XmlUtils.neww3cDomDocument();            
try {
  this.marshal(doc);
} catch (JAXBException e) {
origin: org.docx4j/docx4j

  part.marshal( zos );
} else {
org.docx4j.openpackaging.partsJaxbXmlPartmarshal

Javadoc

Marshal the content tree rooted at jaxbElement into an output stream, using org.docx4j.jaxb.NamespacePrefixMapper.

Popular methods of JaxbXmlPart

  • getJaxbElement
    Get the live contents of this part. (getContents() is preferred, this is the older/less friendly met
  • getContents
    Get the live contents of this part (the JAXB object model). (An alias/synonym for older getJaxbEleme
  • addMcChoiceNamespace
  • addTargetPart
  • getContentLengthAsLoaded
  • getJAXBContext
  • getMcChoiceNamespaces
  • getMceIgnorable
  • getPackage
  • getPartName
  • getRelationshipsPart
  • getXML
    See your content as XML. An easy way to invoke XmlUtils.marshaltoString
  • getRelationshipsPart,
  • getXML,
  • isUnmarshalled,
  • pipe,
  • remove,
  • setContentLengthAsLoaded,
  • setJAXBContext,
  • setJaxbElement,
  • setMceIgnorable

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now