public class PDXObject extends Object implements COSObjectable
Modifier | Constructor and Description |
---|---|
protected |
PDXObject(COSStream stream,
COSName subtype)
Creates a new XObject from the given stream and subtype.
|
protected |
PDXObject(PDDocument document,
COSName subtype)
Creates a new XObject of the given subtype for writing.
|
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.
|
COSStream |
getCOSStream()
Deprecated.
use
getCOSObject() |
PDStream |
getPDStream()
Deprecated.
Use
getStream() instead. |
PDStream |
getStream()
Returns the 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(PDDocument document, COSName subtype)
document
- The document in which to create the XObject.subtype
- The subtype of the new XObject.public static PDXObject createXObject(COSBase base, PDResources resources) throws IOException
base
- The stream which is wrapped by this XObject.resources
- IOException
- if there is an error creating the XObject.public final COSStream getCOSObject()
getCOSObject
in interface COSObjectable
@Deprecated public final COSStream getCOSStream()
getCOSObject()
@Deprecated public final PDStream getPDStream()
getStream()
instead.public final PDStream getStream()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.