|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.pdf.PdfObject
public abstract class PdfObject
The abstract superclass for all representations of objects in PDF files. Objects may be created using the obj syntax, in which case they have an object and generation number, or they may be parts of other objects, in which case they don't. All subclasses should implement a constructor which has the object and generation numbers as its last two arguments, and one which has the same arguments except for omitting these two.
Field Summary | |
---|---|
protected int |
_genNumber
PDF generation number. |
protected int |
_objNumber
PDF object number. |
Constructor Summary | |
---|---|
PdfObject()
Superclass constructor for which the object and generation number will be added separately or not at all. |
|
PdfObject(int objNumber,
int genNumber)
Superclass constructor which should be called for all PdfObject instances that include an object and generation number. |
Method Summary | |
---|---|
int |
getGenNumber()
Returns the PDF generation number. |
int |
getObjNumber()
Returns the PDF object number. |
void |
setGenNumber(int num)
Sets the PDF generation number. |
void |
setObjNumber(int num)
Sets the PDF object number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int _objNumber
protected int _genNumber
Constructor Detail |
---|
public PdfObject(int objNumber, int genNumber)
objNumber
- The PDF object numbergenNumber
- The PDF generation numberpublic PdfObject()
Method Detail |
---|
public int getObjNumber()
public int getGenNumber()
public void setObjNumber(int num)
public void setGenNumber(int num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |