public abstract class PDXObject extends Object implements COSObjectable
Constructor and Description |
---|
PDXObject(COSStream xobj)
Standard constructor.
|
PDXObject(PDDocument doc)
Standard constuctor.
|
PDXObject(PDStream xobj)
Standard constuctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Calling this will release all cached information.
|
protected static PDXObject |
commonXObjectCreation(COSBase xobject,
boolean isThumb)
Create the correct xobject from the cos base.
|
static PDXObject |
createXObject(COSBase xobject)
Create the correct xobject from the cos base.
|
COSBase |
getCOSObject()
Returns the stream.
|
COSStream |
getCOSStream()
Returns the stream.
|
PDMetadata |
getMetadata()
Get the metadata that is part of the document catalog.
|
PDStream |
getPDStream()
Returns the stream.
|
int |
getStructParent()
This will get the key of this XObject in the structural parent tree.
|
void |
setMetadata(PDMetadata meta)
Set the metadata for this object.
|
void |
setStructParent(int structParent)
This will set the key for this XObject in the structural parent tree.
|
public PDXObject(COSStream xobj)
xobj
- The XObject dictionary.public PDXObject(PDStream xobj)
xobj
- The XObject dictionary.public PDXObject(PDDocument doc)
doc
- The doc to store the object contents.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public COSStream getCOSStream()
public PDStream getPDStream()
public static PDXObject createXObject(COSBase xobject) throws IOException
xobject
- The cos level xobject to create.IOException
- If there is an error creating the xobject.protected static PDXObject commonXObjectCreation(COSBase xobject, boolean isThumb)
xobject
- The cos level xobject to create.isThumb
- specify if the xobject represent a Thumbnail Image (in this case, the subtype null must be
considered as an Image)IOException
- If there is an error creating the xobject.public PDMetadata getMetadata()
public void setMetadata(PDMetadata meta)
meta
- The meta data for this object.public int getStructParent()
public void setStructParent(int structParent)
structParent
- The new key for this XObject.public void clear()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.