Constructor and Description |
---|
PDFXRefStream()
Create a fresh XRef stream like for a fresh file or an incremental update.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(COSWriterXRefEntry entry)
Add an new entry to the XRef stream.
|
void |
addTrailerInfo(COSDictionary trailerDict)
Copy all Trailer Information to this file.
|
COSObject |
getObject(int objectNumber)
Returns the object referenced by the given object number.
|
COSStream |
getStream()
Returns the stream of the XRef.
|
void |
setSize(long streamSize)
Set the size of the XRef stream.
|
public PDFXRefStream()
public COSStream getStream() throws IOException
IOException
- if something went wrongpublic void addTrailerInfo(COSDictionary trailerDict)
trailerDict
- dictionary to be added as trailer infopublic void addEntry(COSWriterXRefEntry entry)
entry
- new entry to be addedpublic void setSize(long streamSize)
streamSize
- size to bet set as stream sizeCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.