COSObjectable
public class PDObjectStream extends PDStream
Constructor | Description |
---|---|
PDObjectStream(COSStream str) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static PDObjectStream |
createStream(PDDocument document) |
This will create a new PDStream object.
|
PDObjectStream |
getExtends() |
A reference to an object stream, of which the current object stream is
considered an extension.
|
int |
getFirstByteOffset() |
The byte offset (in the decoded stream) of the first compressed object.
|
int |
getNumberOfObjects() |
Get the number of compressed object.
|
java.lang.String |
getType() |
Get the type of this object, should always return "ObjStm".
|
void |
setExtends(PDObjectStream stream) |
A reference to an object stream, of which the current object stream is
considered an extension.
|
void |
setFirstByteOffset(int n) |
The byte offset (in the decoded stream) of the first compressed object.
|
void |
setNumberOfObjects(int n) |
Set the number of objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCompression, createFromCOS, createInputStream, createOutputStream, getByteArray, getCOSObject, getDecodedStreamLength, getDecodeParms, getFile, getFileDecodeParams, getFileFilters, getFilters, getInputStreamAsString, getLength, getMetadata, getPartiallyFilteredStream, getStream, setDecodedStreamLength, setDecodeParms, setFile, setFileDecodeParams, setFileFilters, setFilters, setMetadata
public PDObjectStream(COSStream str)
str
- The stream parameter.public static PDObjectStream createStream(PDDocument document)
document
- The document that the stream will be part of.public java.lang.String getType()
public int getNumberOfObjects()
public void setNumberOfObjects(int n)
n
- The new number of objects.public int getFirstByteOffset()
public void setFirstByteOffset(int n)
n
- The byte offset to the first object.public PDObjectStream getExtends()
public void setExtends(PDObjectStream stream)
stream
- The object stream extension.