public class COSStreamArray extends COSStream
items| Constructor and Description |
|---|
COSStreamArray(COSArray array)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object o) |
COSBase |
get(int index)
This will get a stream (or the reference to a stream) from the array.
|
COSDictionary |
getDictionary()
This will get the dictionary that is associated with this stream.
|
COSBase |
getDictionaryObject(COSName key)
This will get an object from this dictionary.
|
RandomAccessRead |
getFilteredRandomAccess()
This will get the data with all of the filters applied.
|
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.
|
COSBase |
getItem(COSName key)
This will do a lookup into the dictionary.
|
int |
getStreamCount()
This will get the number of streams in the array.
|
RandomAccessRead |
getUnfilteredRandomAccess()
This will get the logical content with none of the filters.
|
InputStream |
getUnfilteredStream()
This will get the logical content stream with none of the filters.
|
void |
insertCOSStream(PDStream streamToBeInserted)
Insert the given stream at the beginning of the existing stream array.
|
void |
setFilters(COSBase filters)
set the filters to be applied to the stream.
|
String |
toString() |
close, getDecodeResult, getFilteredLength, getOriginLength, getString, isEndstreamKeywordEOLCompliant, isStreamKeywordCRLFCompliant, setEndstreamKeywordEOLCompliant, setOriginLength, setStreamKeywordCRLFCompliantaddAll, asUnmodifiableDictionary, clear, containsKey, containsKey, containsValue, entrySet, getBoolean, getBoolean, getBoolean, getCOSName, getCOSName, getDate, getDate, getDate, getDate, getDictionaryObject, getDictionaryObject, getDictionaryObject, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedString, getEmbeddedString, getEmbeddedString, getEmbeddedString, getFlag, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getInt, getInt, getInt, getItem, getKeyForValue, getLong, getLong, getLong, getLong, getLong, getNameAsString, getNameAsString, getNameAsString, getNameAsString, getObjectFromPath, getString, getString, getString, getString, getValues, isNeedToBeUpdated, keySet, mergeInto, removeItem, setBoolean, setBoolean, setDate, setDate, setEmbeddedDate, setEmbeddedDate, setEmbeddedInt, setEmbeddedInt, setEmbeddedString, setEmbeddedString, setFlag, setFloat, setFloat, setInt, setInt, setItem, setItem, setItem, setItem, setLong, setLong, setName, setName, setNeedToBeUpdated, setString, setString, sizepublic COSStreamArray(COSArray array)
array - The array of COSStreams to concatenate together.public COSBase get(int index)
index - The index of the requested streampublic int getStreamCount()
public 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 that we are getting.public String toString()
toString in class COSDictionarypublic COSDictionary getDictionary()
public InputStream getFilteredStream() throws IOException
getFilteredStream in class COSStreamIOException - when encoding causes an exceptionpublic RandomAccessRead getFilteredRandomAccess() throws IOException
getFilteredRandomAccess in class COSStreamIOException - when encoding causes an exceptionpublic InputStream getUnfilteredStream() throws IOException
getUnfilteredStream in class COSStreamIOException - when decoding causes an exceptionpublic RandomAccessRead getUnfilteredRandomAccess() throws IOException
getUnfilteredRandomAccess in class COSStreamIOException - when decoding causes an exceptionpublic Object accept(ICOSVisitor visitor) throws IOException
accept in class COSStreamvisitor - The object to notify when visiting this object.IOException - If there is an error visiting this object.public COSBase getFilters()
getFilters in class COSStreampublic 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.public void insertCOSStream(PDStream streamToBeInserted)
streamToBeInserted - Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.