Package org.apache.poi.hwpf.model
Class PAPBinTable
java.lang.Object
org.apache.poi.hwpf.model.PAPBinTable
- Direct Known Subclasses:
OldPAPBinTable
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.
- Author:
- Ryan Ackley
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPAPBinTable
(byte[] documentStream, byte[] tableStream, byte[] dataStream, int offset, int size, CharIndexTranslator charIndexTranslator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustForDelete
(int listIndex, int offset, int length) void
adjustForInsert
(int listIndex, int length) void
insert
(int listIndex, int cpStart, SprmBuffer buf) void
rebuild
(StringBuilder docText, ComplexFileTable complexFileTable) void
writeTo
(ByteArrayOutputStream wordDocumentStream, ByteArrayOutputStream tableStream, CharIndexTranslator translator)
-
Field Details
-
_paragraphs
-
-
Constructor Details
-
PAPBinTable
public PAPBinTable() -
PAPBinTable
public PAPBinTable(byte[] documentStream, byte[] tableStream, byte[] dataStream, int offset, int size, CharIndexTranslator charIndexTranslator)
-
-
Method Details
-
rebuild
-
insert
-
adjustForDelete
public void adjustForDelete(int listIndex, int offset, int length) -
adjustForInsert
public void adjustForInsert(int listIndex, int length) -
getParagraphs
-
writeTo
public void writeTo(ByteArrayOutputStream wordDocumentStream, ByteArrayOutputStream tableStream, CharIndexTranslator translator) throws IOException - Throws:
IOException
-