Class DefaultMarshaller

  • All Implemented Interfaces:
    PartMarshaller

    public final class DefaultMarshaller
    extends java.lang.Object
    implements PartMarshaller
    Default marshaller that specified that the part is responsible to marshall its content.
    See Also:
    PartMarshaller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean marshall​(PackagePart part, java.io.OutputStream out)
      Save the given part in the output stream by using the save() method of the part.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMarshaller

        public DefaultMarshaller()
    • Method Detail

      • marshall

        public boolean marshall​(PackagePart part,
                                java.io.OutputStream out)
                         throws OpenXML4JException
        Save the given part in the output stream by using the save() method of the part.
        Specified by:
        marshall in interface PartMarshaller
        Parameters:
        part - The PackagePart to store.
        out - Output stream to save this part.
        Returns:
        true if the content has been successfully stored, false otherwise. More information about errors may be logged via Log4j 2.
        Throws:
        OpenXML4JException - If any error occur.