intarsys PDF library API

de.intarsys.pdf.st
Class STXRefEntryFree

java.lang.Object
  extended by de.intarsys.pdf.st.STXRefEntry
      extended by de.intarsys.pdf.st.STXRefEntryFree
All Implemented Interfaces:
Comparable

public class STXRefEntryFree
extends STXRefEntry

Represents a free object entry in a pdf xref table.


Constructor Summary
STXRefEntryFree(COSObjectKey key, int nextFreeObject)
           
 
Method Summary
 void accept(de.intarsys.pdf.st.IXRefEntryVisitor visitor)
           
 STXRefEntry copy()
           
 void enqueue(STXRefEntryFree entry)
          Add a new free entry in the linked list of free entries.
 STXRefEntryOccupied fill(int pos)
           
 long getColumn1()
           
 int getColumn2()
           
 int getNextFreeObjectNumber()
           
 boolean isFree()
           
 COSObject load(STDocument doc, ISystemSecurityHandler securityHandler)
           
 
Methods inherited from class de.intarsys.pdf.st.STXRefEntry
compareTo, getGenerationNumber, getKey, getObjectNumber, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

STXRefEntryFree

public STXRefEntryFree(COSObjectKey key,
                       int nextFreeObject)
Method Detail

getColumn1

public long getColumn1()
Specified by:
getColumn1 in class STXRefEntry

getColumn2

public int getColumn2()
Specified by:
getColumn2 in class STXRefEntry

isFree

public boolean isFree()
Specified by:
isFree in class STXRefEntry

getNextFreeObjectNumber

public int getNextFreeObjectNumber()

enqueue

public void enqueue(STXRefEntryFree entry)
Add a new free entry in the linked list of free entries. The linked list is formed by the head entry with index 0. This entry and all subsequent hold a reference to their successor and predecessor. Adding a new entry means that we look up the entry in the linked list, starting at the head, that has the highest index smaller than the index of the new entry. The new entry is inserted after that position in the linked list.

Parameters:
entry - The new entry to insert in the linked list.

fill

public STXRefEntryOccupied fill(int pos)
Specified by:
fill in class STXRefEntry

load

public COSObject load(STDocument doc,
                      ISystemSecurityHandler securityHandler)
Specified by:
load in class STXRefEntry

accept

public void accept(de.intarsys.pdf.st.IXRefEntryVisitor visitor)
            throws XRefEntryVisitorException
Specified by:
accept in class STXRefEntry
Throws:
XRefEntryVisitorException

copy

public STXRefEntry copy()
Specified by:
copy in class STXRefEntry

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.