类 NiceXWPFDocument

java.lang.Object
org.apache.poi.ooxml.POIXMLDocumentPart
org.apache.poi.ooxml.POIXMLDocument
org.apache.poi.xwpf.usermodel.XWPFDocument
com.deepoove.poi.xwpf.NiceXWPFDocument
所有已实现的接口:
Closeable, AutoCloseable, org.apache.poi.xwpf.usermodel.Document, org.apache.poi.xwpf.usermodel.IBody

public class NiceXWPFDocument extends org.apache.poi.xwpf.usermodel.XWPFDocument
  • 嵌套类概要

    从类继承的嵌套类/接口 org.apache.poi.ooxml.POIXMLDocumentPart

    org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected boolean
    protected List<org.apache.poi.xwpf.usermodel.XWPFPicture>
    protected List<org.apache.poi.xwpf.usermodel.XWPFTable>
    protected Map<org.apache.poi.xwpf.usermodel.XWPFChart,org.apache.poi.openxml4j.opc.PackagePart>
    protected XWPFComments
    protected static org.apache.poi.xwpf.usermodel.XWPFRelation
    protected static org.apache.poi.xwpf.usermodel.XWPFRelation
    protected List<org.apache.poi.ooxml.POIXMLDocumentPart>

    从类继承的字段 org.apache.poi.xwpf.usermodel.XWPFDocument

    bodyElements, charts, contentControls, endnotes, footers, footnotes, headers, hyperlinks, numbering, packagePictures, paragraphs, pictures, styles, tables

    从类继承的字段 org.apache.poi.ooxml.POIXMLDocument

    DOCUMENT_CREATOR, OLE_OBJECT_REL_TYPE, PACK_OBJECT_REL_TYPE

    从接口继承的字段 org.apache.poi.xwpf.usermodel.Document

    PICTURE_TYPE_BMP, PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_EPS, PICTURE_TYPE_GIF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_TIFF, PICTURE_TYPE_WMF, PICTURE_TYPE_WPG
  • 构造器概要

    构造器
    构造器
    说明
    NiceXWPFDocument(InputStream in, boolean adjustDoc)
  • 方法概要

    修饰符和类型
    方法
    说明
    org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart
    addChartData(org.apache.poi.xwpf.usermodel.XWPFChart chart)
    addEmbeddData(byte[] embeddData, int format)
    addEmbeddData(byte[] embeddData, String contentType, String part)
    protected void
    generate(boolean adjust)
    List<org.apache.poi.xwpf.usermodel.XWPFPicture>
    List<org.apache.poi.xwpf.usermodel.XWPFTable>
    org.apache.poi.xwpf.usermodel.XWPFParagraph
    insertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)
    org.apache.poi.xwpf.usermodel.XWPFTable
    insertNewTbl(org.apache.xmlbeans.XmlCursor cursor)
    merge(Iterator<NiceXWPFDocument> iterator, org.apache.poi.xwpf.usermodel.XWPFRun run)
    merge(List<NiceXWPFDocument> docMerges, org.apache.poi.xwpf.usermodel.XWPFRun run)
    org.apache.poi.xwpf.usermodel.XWPFPictureData
    niceFindPackagePictureData(byte[] pictureData, int format)
    void
    niceRegisterPackagePictureData(org.apache.poi.xwpf.usermodel.XWPFPictureData picData)
    protected void

    从类继承的方法 org.apache.poi.xwpf.usermodel.XWPFDocument

    addEndnote, addFootnote, addPictureData, addPictureData, createChart, createChart, createChart, createEndnote, createEndnotes, createFooter, createFootnote, createFootnotes, createHeader, createHeaderFooterPolicy, createNumbering, createParagraph, createStyles, createTable, createTable, createTOC, enforceCommentsProtection, enforceCommentsProtection, enforceFillingFormsProtection, enforceFillingFormsProtection, enforceReadonlyProtection, enforceReadonlyProtection, enforceTrackedChangesProtection, enforceTrackedChangesProtection, enforceUpdateFields, getAllEmbeddedParts, getAllPackagePictures, getAllPictures, getBodyElements, getBodyElementsIterator, getCharts, getCommentByID, getComments, getDocument, getEndnoteByID, getEndnotes, getEvenAndOddHeadings, getFooterArray, getFooterList, getFootnoteByID, getFootnotes, getHeaderArray, getHeaderFooterPolicy, getHeaderList, getHyperlinkByID, getHyperlinks, getLastParagraph, getMirrorMargins, getNextPicNameNumber, getNumbering, getParagraph, getParagraphArray, getParagraphPos, getParagraphs, getParagraphsIterator, getPart, getPartById, getPartType, getPictureDataByID, getPosOfParagraph, getPosOfTable, getStyle, getStyles, getTable, getTableArray, getTableCell, getTablePos, getTables, getTablesIterator, getTblStyle, getXWPFDocument, getZoomPercent, insertTable, isEnforcedCommentsProtection, isEnforcedFillingFormsProtection, isEnforcedProtection, isEnforcedReadonlyProtection, isEnforcedTrackedChangesProtection, isEnforcedUpdateFields, isTrackRevisions, newPackage, onDocumentRead, removeBodyElement, removeEndnote, removeFootnote, removeProtectionEnforcement, setEvenAndOddHeadings, setMirrorMargins, setParagraph, setTable, setTrackRevisions, setZoomPercent, validateProtectionPassword

    从类继承的方法 org.apache.poi.ooxml.POIXMLDocument

    close, getAllEmbedds, getCorePart, getPackage, getProperties, getRelatedByType, load, openPackage, write

    从类继承的方法 org.apache.poi.ooxml.POIXMLDocumentPart

    _invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommited, isCommitted, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, setCommitted, toString

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • comments

      protected XWPFComments comments
    • structuredDocumentTags

      protected List<XWPFStructuredDocumentTag> structuredDocumentTags
    • allTables

      protected List<org.apache.poi.xwpf.usermodel.XWPFTable> allTables
    • allPictures

      protected List<org.apache.poi.xwpf.usermodel.XWPFPicture> allPictures
    • embedds

      protected List<org.apache.poi.ooxml.POIXMLDocumentPart> embedds
    • idenifierManagerWrapper

      protected IdenifierManagerWrapper idenifierManagerWrapper
    • adjustDoc

      protected boolean adjustDoc
    • chartMappingPart

      protected Map<org.apache.poi.xwpf.usermodel.XWPFChart,org.apache.poi.openxml4j.opc.PackagePart> chartMappingPart
    • COMMENTS

      protected static org.apache.poi.xwpf.usermodel.XWPFRelation COMMENTS
    • DOCUMENT

      protected static org.apache.poi.xwpf.usermodel.XWPFRelation DOCUMENT
  • 构造器详细资料

    • NiceXWPFDocument

      public NiceXWPFDocument()
    • NiceXWPFDocument

      public NiceXWPFDocument(InputStream in) throws IOException
    • NiceXWPFDocument

      public NiceXWPFDocument(InputStream in, boolean adjustDoc) throws IOException
  • 方法详细资料

    • onDocumentCreate

      protected void onDocumentCreate()
    • getAllEmbeddedPictures

      public List<org.apache.poi.xwpf.usermodel.XWPFPicture> getAllEmbeddedPictures()
    • getAllTables

      public List<org.apache.poi.xwpf.usermodel.XWPFTable> getAllTables()
    • getDocPrIdenifierManager

      public IdenifierManagerWrapper getDocPrIdenifierManager()
    • addNewNumberingId

      public BigInteger addNewNumberingId(NumberingFormat numFmt)
    • addNewMultiLevelNumberingId

      public BigInteger addNewMultiLevelNumberingId(NumberingFormat... numFmts)
    • addChartData

      public org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart addChartData(org.apache.poi.xwpf.usermodel.XWPFChart chart) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
    • addEmbeddData

      public String addEmbeddData(byte[] embeddData, int format) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException
    • addEmbeddData

      public String addEmbeddData(byte[] embeddData, String contentType, String part) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException
    • commit

      protected void commit() throws IOException
    • generate

      public NiceXWPFDocument generate() throws IOException
    • generate

      public NiceXWPFDocument generate(boolean adjust) throws IOException
    • merge

      public NiceXWPFDocument merge(NiceXWPFDocument docMerge) throws Exception
    • merge

      public NiceXWPFDocument merge(List<NiceXWPFDocument> docMerges, org.apache.poi.xwpf.usermodel.XWPFRun run) throws Exception
    • merge

      public NiceXWPFDocument merge(Iterator<NiceXWPFDocument> iterator, org.apache.poi.xwpf.usermodel.XWPFRun run) throws Exception
    • niceRegisterPackagePictureData

      public void niceRegisterPackagePictureData(org.apache.poi.xwpf.usermodel.XWPFPictureData picData)
    • niceFindPackagePictureData

      public org.apache.poi.xwpf.usermodel.XWPFPictureData niceFindPackagePictureData(byte[] pictureData, int format)
    • createComments

      public XWPFComments createComments()
    • getDocComments

      public XWPFComments getDocComments()
    • getAllComments

      public List<XWPFComment> getAllComments()
    • getStructuredDocumentTags

      public List<XWPFStructuredDocumentTag> getStructuredDocumentTags()
    • insertNewParagraph

      public org.apache.poi.xwpf.usermodel.XWPFParagraph insertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)
    • insertNewTbl

      public org.apache.poi.xwpf.usermodel.XWPFTable insertNewTbl(org.apache.xmlbeans.XmlCursor cursor)