public class XWPFHeader extends XWPFHeaderFooter
POIXMLDocumentPart.RelationPart
Constructor and Description |
---|
XWPFHeader() |
XWPFHeader(POIXMLDocumentPart parent, PackagePart part) |
XWPFHeader(XWPFDocument doc, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr hdrFtr) |
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
save and commit footer
(保存并提交页脚)
|
BodyType |
getPartType()
get the PartType of the body
(获取 body 的 PartType)
|
protected void |
onDocumentRead()
reads the document
(读取文件)
|
_getHdrFtr, addPictureData, addPictureData, clearHeaderFooter, createParagraph, createTable, getAllPackagePictures, getAllPictures, getBodyElements, getListParagraph, getOwner, getParagraph, getParagraphArray, getParagraphs, getPart, getPictureDataByID, getTable, getTableArray, getTableCell, getTables, getText, getXWPFDocument, insertNewParagraph, insertNewTbl, insertTable, prepareForCommit, readHdrFtr, removeParagraph, removeTable, setHeaderFooter, setXWPFDocument
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
public XWPFHeader()
public XWPFHeader(POIXMLDocumentPart parent, PackagePart part) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public XWPFHeader(XWPFDocument doc, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr hdrFtr)
protected void commit() throws java.io.IOException
commit
in class
POIXMLDocumentPart
java.io.IOException
- a subclass may throw an IOException if the changes can't be committed
(java.io.IOException - 如果无法提交更改,子类可能会抛出 IOException)
protected void onDocumentRead() throws java.io.IOException
onDocumentRead
in class
XWPFHeaderFooter
java.io.IOException
(java.io.IOException)
public BodyType getPartType()
IBody.getPartType()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.