public class PDTextStream extends Object implements COSObjectable
Constructor and Description |
---|
PDTextStream(COSStream str)
Constructor.
|
PDTextStream(COSString str)
Constructor.
|
PDTextStream(String str)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static PDTextStream |
createTextStream(COSBase base)
This will create the text stream object.
|
InputStream |
getAsStream()
This is the preferred way of getting data with this class as it uses
a stream object.
|
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(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 String getAsString() throws IOException
IOException
- If an IO error occurs while accessing the stream.public InputStream getAsStream() throws IOException
IOException
- If an IO error occurs while accessing the stream.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.