public class COSFilterFlateDecode extends ASBufferingInFilter
BF_BUFFER_SIZE, internalBuffernPos, resourceUsers| Constructor and Description |
|---|
COSFilterFlateDecode(ASInputStream stream)
Constructor from Flate encoded stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(byte[] buffer,
int size)
Decodes given flate compressed data from stream and reads up to
size bytes of decompressed data into given array. |
void |
reset() |
int |
skip(int size)
Skips given number of decoded bytes in stream.
|
addToBuffer, bufferPop, bufferPopArray, bufferSize, closeResource, concatenate, decode, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, processBuffergetInputStream, read, read, setInputStreamclose, createStreamFromStreamavailable, mark, markSupported, read, skippublic COSFilterFlateDecode(ASInputStream stream) throws IOException
stream - is Flate encoded stream.IOExceptionpublic int read(byte[] buffer,
int size)
throws IOException
size bytes of decompressed data into given array.read in class ASInFilterbuffer - is array into which data will be decompressed.size - is maximal amount of decompressed bytes.IOExceptionpublic int skip(int size)
throws IOException
skip in class ASInFiltersize - is amount of bytes to skip.IOException - if stream-reading error occurs.public void reset()
throws IOException
ASBufferingInFilterreset in class ASBufferingInFilterIOExceptionCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.