|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.cos.COSBase
org.pdfbox.cos.COSDictionary
org.pdfbox.cos.COSStream
org.pdfbox.pdmodel.common.COSStreamArray
This will take an array of streams and sequence them together.
| Constructor Summary | |
COSStreamArray(COSArray array)
Constructor. |
|
| Method Summary | |
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method. |
void |
appendStream(COSStream streamToAppend)
Appends a new stream to the array that represents this object's stream. |
OutputStream |
createFilteredStream()
This will create a new stream for which filtered byte should be written to. |
OutputStream |
createFilteredStream(COSBase expectedLength)
This will create a new stream for which filtered byte should be written to. |
OutputStream |
createUnfilteredStream()
This will create an output stream that can be written to. |
COSDictionary |
getDictionary()
This will get the dictionary that is associated with this stream. |
COSBase |
getDictionaryObject(COSName key)
This will get an object from this streams dictionary and dereference it if necessary. |
InputStream |
getFilteredStream()
This will get the stream with all of the filters applied. |
COSBase |
getFilters()
This will return the filters to apply to the byte stream the method will return |
COSBase |
getItem(COSName key)
This will get an object from this streams dictionary. |
RandomAccess |
getScratchFile()
This will get the scratch file associated with this stream. |
List |
getStreamTokens()
This will get all the tokens in the stream. |
InputStream |
getUnfilteredStream()
This will get the logical content stream with none of the filters. |
void |
setFilters(COSBase filters)
set the filters to be applied to the stream. |
String |
toString()
|
| Methods inherited from class org.pdfbox.cos.COSStream |
replaceWithStream |
| Methods inherited from class org.pdfbox.cos.COSBase |
getCOSObject, getFilterManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public COSStreamArray(COSArray array)
array - The array of COSStreams to concatenate together.| Method Detail |
public RandomAccess getScratchFile()
getScratchFile in class COSStreampublic COSBase getItem(COSName key)
getItem in class COSDictionarykey - The key to the object.
public COSBase getDictionaryObject(COSName key)
getDictionaryObject in class COSDictionarykey - The key to the object.
public String toString()
public List getStreamTokens()
throws IOException
getStreamTokens in class COSStreamIOException - If there is an error parsing the stream.public COSDictionary getDictionary()
public InputStream getFilteredStream()
throws IOException
getFilteredStream in class COSStreamIOException - when encoding/decoding causes an exception
public InputStream getUnfilteredStream()
throws IOException
getUnfilteredStream in class COSStreamIOException - when encoding/decoding causes an exception
public Object accept(ICOSVisitor visitor)
throws COSVisitorException
accept in class COSStreamvisitor - The object to notify when visiting this object.
COSVisitorException - If an error occurs while visiting this object.public COSBase getFilters()
getFilters in class COSStream
public OutputStream createFilteredStream()
throws IOException
createFilteredStream in class COSStreamIOException - If there is an error creating the stream.
public OutputStream createFilteredStream(COSBase expectedLength)
throws IOException
createFilteredStream in class COSStreamexpectedLength - An entry where a length is expected.
IOException - If there is an error creating the stream.
public void setFilters(COSBase filters)
throws IOException
setFilters in class COSStreamfilters - The filters to set on this stream.
IOException - If there is an error clearing the old filters.
public OutputStream createUnfilteredStream()
throws IOException
createUnfilteredStream in class COSStreamIOException - If there is an error creating the stream.public void appendStream(COSStream streamToAppend)
streamToAppend - The stream to append.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||