Class PAPBinTable

  • Direct Known Subclasses:

    public class PAPBinTable
    extends java.lang.Object
    This class represents the bin table of Word document but it also serves as a holder for all of the paragraphs of document that have been loaded into memory.
    • Constructor Detail

      • PAPBinTable

        public PAPBinTable()
      • PAPBinTable

        public PAPBinTable​(byte[] documentStream,
                           byte[] tableStream,
                           byte[] dataStream,
                           int offset,
                           int size,
                           CharIndexTranslator charIndexTranslator)
    • Method Detail

      • rebuild

        public void rebuild​(java.lang.StringBuilder docText,
                            ComplexFileTable complexFileTable)
      • insert

        public void insert​(int listIndex,
                           int cpStart,
                           SprmBuffer buf)
      • adjustForDelete

        public void adjustForDelete​(int listIndex,
                                    int offset,
                                    int length)
      • adjustForInsert

        public void adjustForInsert​(int listIndex,
                                    int length)
      • getParagraphs

        public java.util.ArrayList<PAPX> getParagraphs()
      • writeTo

        public void writeTo​( wordDocumentStream,
                            CharIndexTranslator translator)