Class XWPFHeader

  • All Implemented Interfaces:
    IBody

    public class XWPFHeader
    extends XWPFHeaderFooter
    Sketch of XWPF header class
    • Constructor Detail

      • XWPFHeader

        public XWPFHeader()
      • XWPFHeader

        public XWPFHeader​(POIXMLDocumentPart parent,
                          PackagePart part)
                   throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        POI 3.14-Beta1
      • XWPFHeader

        public XWPFHeader​(XWPFDocument doc,
                          org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr hdrFtr)
    • Method Detail

      • commit

        protected void commit()
                       throws java.io.IOException
        save and commit footer
        Overrides:
        commit in class POIXMLDocumentPart
        Throws:
        java.io.IOException - a subclass may throw an IOException if the changes can't be committed
      • onDocumentRead

        protected void onDocumentRead()
                               throws java.io.IOException
        reads the document
        Overrides:
        onDocumentRead in class XWPFHeaderFooter
        Throws:
        java.io.IOException
      • getPartType

        public BodyType getPartType()
        get the PartType of the body
        Returns:
        the PartType of the body
        See Also:
        IBody.getPartType()