| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private long | |
| private final COSStream | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | PDFXRefStream(COSDocument
the COSDocmernt to be used to create a new COSStream cosDocument)Create a fresh XRef stream like for a fresh file or an incremental update. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addTrailerInfo(COSDictionary
dictionary to be added as trailer info trailerDict)Copy all Trailer Information to this file. |
| private List | |
| public COSStream | |
| private int[] | Returns: the length informationdetermines the minimal length required for all the lengths. |
| public void | |
| private void | |
| private void |
| objectNumbers | back to summary |
|---|---|
| private final Set<Long> objectNumbers | |
| size | back to summary |
|---|---|
| private long size | |
| stream | back to summary |
|---|---|
| private final COSStream stream | |
| streamData | back to summary |
|---|---|
| private final List<XReferenceEntry> streamData | |
| PDFXRefStream | back to summary |
|---|---|
| public PDFXRefStream(COSDocument cosDocument) Create a fresh XRef stream like for a fresh file or an incremental update.
| |
| addEntry | back to summary |
|---|---|
| public void addEntry(XReferenceEntry entry) Add an new entry to the XRef stream.
| |
| addTrailerInfo | back to summary |
|---|---|
| public void addTrailerInfo(COSDictionary trailerDict) Copy all Trailer Information to this file.
| |
| getIndexEntry | back to summary |
|---|---|
| private List | |
| getStream | back to summary |
|---|---|
| public COSStream getStream() throws IOException Returns the stream of the XRef.
| |
| getWEntry | back to summary |
|---|---|
| private int[] getWEntry() determines the minimal length required for all the lengths.
| |
| setSize | back to summary |
|---|---|
| public void setSize(long streamSize) Set the size of the XRef stream.
| |
| writeNumber | back to summary |
|---|---|
| private void writeNumber(OutputStream os, long number, int bytes) throws IOException | |
| writeStreamData | back to summary |
|---|---|
| private void writeStreamData(OutputStream os, int[] w) throws IOException | |