org.pdfbox.pdfwriter
Class COSWriterXRefEntry
java.lang.Object
org.pdfbox.pdfwriter.COSWriterXRefEntry
- Comparable
public class COSWriterXRefEntry
extends java.lang.Object
implements Comparable
this is en entry in the xref section of the physical pdf document
generated by the COSWriter.
COSWriterXRefEntry
public COSWriterXRefEntry(long start,
COSBase obj,
COSObjectKey keyValue)
COSWriterXRefEntry constructor comment.
start
- The start attribute.obj
- The COS object that this entry represents.keyValue
- The key to the COS object.
compareTo
public int compareTo(Object obj)
getKey
public COSObjectKey getKey()
This will get the Object key.
getObject
public COSBase getObject()
This will get the object.
getOffset
public long getOffset()
This will get the offset into the document.
- The offset into the document.
isFree
public boolean isFree()
Gets the xref 'free' attribute.
setFree
public void setFree(boolean newFree)
This will set the free attribute.
newFree
- The newly freed attribute.
setOffset
public void setOffset(long newOffset)
The offset attribute.
newOffset
- The new value for the offset.