|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.etymon.pjx.XrefTable
Represents the PDF cross-reference table and associated trailer dictionary. This class is immutable.
| Field Summary | |
static byte |
ENTRY_FREE
This indicates that an entry is free. |
static byte |
ENTRY_IN_USE
This indicates that an entry is in-use. |
static byte |
ENTRY_UNDEFINED
This indicates that an entry is undefined. |
| Constructor Summary | |
XrefTable(long[] index,
int[] generation,
byte[] usage,
PdfDictionary trailerDictionary)
Constructs a cross-reference table from a set of arrays and a trailer dictionary. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a shallow copy of this instance. |
long |
estimateObjectEnd(int n)
Returns an offset estimated to be relatively close to the end of the object (specified by object number). |
int |
getGeneration(int n)
Returns the generation value for a specified object. |
int[] |
getGenerationArray()
Returns the array of generation values. |
long |
getIndex(int n)
Returns the index value for a specified object. |
long[] |
getIndexArray()
Returns the array of index values. |
PdfDictionary |
getTrailerDictionary()
Returns the trailer dictionary associated with this cross-reference table. |
byte |
getUsage(int n)
Returns the usage value for a specified object. |
byte[] |
getUsageArray()
Returns the array of usage values. |
int |
size()
Returns the number of entries in this cross-reference table. |
java.lang.String |
toString()
Returns the cross-reference table, associated trailer dictionary, and a complete PDF trailer as a string in PDF format. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final byte ENTRY_FREE
public static final byte ENTRY_IN_USE
public static final byte ENTRY_UNDEFINED
| Constructor Detail |
public XrefTable(long[] index,
int[] generation,
byte[] usage,
PdfDictionary trailerDictionary)
throws PdfFormatException
index - the array of index values. Each value
represents either a byte offset (if in-use) or the next
free object number (if free).generation - the array of generation values.usage - the array of usage values. Each value is
ENTRY_FREE, ENTRY_IN_USE, or ENTRY_UNDEFINED.trailerDictionary - the trailer dictionary.
PdfFormatException| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic long estimateObjectEnd(int n)
n - the specified object number.
public int getGeneration(int n)
n - the object number.
public int[] getGenerationArray()
public long getIndex(int n)
n - the object number.
public long[] getIndexArray()
public PdfDictionary getTrailerDictionary()
public byte getUsage(int n)
n - the object number.
public byte[] getUsageArray()
public int size()
public java.lang.String toString()
|
Copyright © 1998-2004 Etymon Systems, Inc. The PDF data structures, operators, and specification are |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||