|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdfparser.PDFXRefStream
public class PDFXRefStream
Constructor Summary | |
---|---|
PDFXRefStream()
Create a fresh XRef stream like for a fresh file or an incremental update. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFXRefStream()
Method Detail |
---|
public COSStream getStream() throws java.io.IOException
java.io.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 sizepublic COSObject getObject(int objectNumber)
getObject
in interface PDFXRef
objectNumber
- the object to be returned
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |