COSObjectable
public class PDTextStream extends java.lang.Object implements COSObjectable
Constructor | Description |
---|---|
PDTextStream(java.lang.String str) |
Constructor.
|
PDTextStream(COSStream str) |
Constructor.
|
PDTextStream(COSString str) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static PDTextStream |
createTextStream(COSBase base) |
This will create the text stream object.
|
java.io.InputStream |
getAsStream() |
This is the preferred way of getting data with this class as it uses
a stream object.
|
java.lang.String |
getAsString() |
This will get this value as a string.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
public PDTextStream(COSString str)
str
- The string parameter.public PDTextStream(java.lang.String str)
str
- The string parameter.public PDTextStream(COSStream str)
str
- The stream parameter.public static PDTextStream createTextStream(COSBase base)
base
- The COS text stream object.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public java.lang.String getAsString() throws java.io.IOException
java.io.IOException
- If an IO error occurs while accessing the stream.public java.io.InputStream getAsStream() throws java.io.IOException
java.io.IOException
- If an IO error occurs while accessing the stream.