org.apache.pdfbox.pdfwriter
public class: COSWriterXRefEntry [javadoc |
source]
java.lang.Object
org.apache.pdfbox.pdfwriter.COSWriterXRefEntry
All Implemented Interfaces:
Comparable
this is en entry in the xref section of the physical pdf document
generated by the COSWriter.
- author:
Michael
- Traut
- version:
$
- Revision: 1.7 $
Constructor: |
public COSWriterXRefEntry(long start,
COSBase obj,
COSObjectKey keyValue) {
super();
setOffset(start);
setObject(obj);
setKey(keyValue);
}
COSWriterXRefEntry constructor comment. Parameters:
start - The start attribute.
obj - The COS object that this entry represents.
keyValue - The key to the COS object.
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.pdfbox.pdfwriter.COSWriterXRefEntry Detail: |
public int compareTo(Object obj) {
if (obj instanceof COSWriterXRefEntry)
{
return (int)(getKey().getNumber() - ((COSWriterXRefEntry)obj).getKey().getNumber());
}
else
{
return -1;
}
}
|
public COSObjectKey getKey() {
return key;
}
This will get the Object key. |
public COSBase getObject() {
return object;
}
This will get the object. |
public long getOffset() {
return offset;
}
This will get the offset into the document. |
public boolean isFree() {
return free;
}
Gets the xref 'free' attribute. |
public void setFree(boolean newFree) {
free = newFree;
}
This will set the free attribute. |
public void setOffset(long newOffset) {
offset = newOffset;
}
|