|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.cos.COSBase
org.apache.pdfbox.cos.COSObject
public class COSObject
This class represents a PDF object.
Constructor Summary | |
---|---|
COSObject(COSBase object)
Constructor. |
Method Summary | |
---|---|
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method. |
COSBase |
getDictionaryObject(COSName key)
This will get the dictionary object in this object that has the name key and if it is a pdfobjref then it will dereference that and return it. |
COSInteger |
getGenerationNumber()
Getter for property generationNumber. |
COSBase |
getItem(COSName key)
This will get the dictionary object in this object that has the name key. |
COSBase |
getObject()
This will get the object that this object encapsulates. |
COSInteger |
getObjectNumber()
Getter for property objectNumber. |
void |
setGenerationNumber(COSInteger generationNumberValue)
Setter for property generationNumber. |
void |
setObject(COSBase object)
This will set the object that this object encapsulates. |
void |
setObjectNumber(COSInteger objectNum)
Setter for property objectNumber. |
String |
toString()
|
Methods inherited from class org.apache.pdfbox.cos.COSBase |
---|
getCOSObject, getFilterManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public COSObject(COSBase object) throws IOException
object
- The object that this encapsulates.
IOException
- If there is an error with the object passed in.Method Detail |
---|
public COSBase getDictionaryObject(COSName key)
key
- The key to the value that we are searching for.
public COSBase getItem(COSName key)
key
- The key to the value that we are searching for.
public COSBase getObject()
public void setObject(COSBase object) throws IOException
object
- The new object to encapsulate.
IOException
- If there is an error setting the updated object.public String toString()
toString
in class Object
public COSInteger getObjectNumber()
public void setObjectNumber(COSInteger objectNum)
objectNum
- New value of property objectNumber.public COSInteger getGenerationNumber()
public void setGenerationNumber(COSInteger generationNumberValue)
generationNumberValue
- New value of property generationNumber.public Object accept(ICOSVisitor visitor) throws COSVisitorException
accept
in class COSBase
visitor
- The object to notify when visiting this object.
COSVisitorException
- If an error occurs while visiting this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |