public class PDXObject extends Object implements COSObjectable
| Modifier | Constructor and Description |
|---|---|
protected |
PDXObject(COSName subtype)
Creates a new XObject from the given stream and subtype.
|
protected |
PDXObject(COSStream stream,
COSName subtype)
Creates a new XObject from the given stream and subtype.
|
protected |
PDXObject(PDStream stream,
COSName subtype)
Creates a new XObject from the given stream and subtype.
|
| Modifier and Type | Method and Description |
|---|---|
static PDXObject |
createXObject(COSBase base,
PDResources resources)
Creates a new XObject instance of the appropriate type for the COS stream.
|
COSStream |
getCOSObject()
Returns the stream.
|
PDStream |
getStream()
Returns the stream.
|
void |
setStream(PDStream stream) |
protected PDXObject(COSStream stream, COSName subtype)
stream - The stream to read.subtype - protected PDXObject(PDStream stream, COSName subtype)
stream - The stream to read.subtype - protected PDXObject(COSName subtype)
stream - The stream to read.public static PDXObject createXObject(COSBase base, PDResources resources) throws IOException
base - The stream which is wrapped by this XObject.IOException - if there is an error creating the XObject.public final COSStream getCOSObject()
getCOSObject in interface COSObjectableCOSBase that matches this Java object.public final PDStream getStream()
public final void setStream(PDStream stream)
Copyright © 2019 sejda. All rights reserved.