Class DeflaterReader
java.lang.Object
java.io.InputStream
org.apache.activemq.artemis.utils.DeflaterReader
- All Implemented Interfaces:
Closeable,AutoCloseable
A DeflaterReader
The reader takes an inputstream and compress it.
Not for concurrent use.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DeflaterReader
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
Try to fill the buffer with compressed bytes. Except the last effective read, this method always returns with a full buffer of compressed data.- Overrides:
readin classInputStream- Parameters:
buffer- the buffer to fill compressed bytes- Returns:
- the number of bytes really filled, -1 indicates end
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getTotalSize
public long getTotalSize() -
setLevel
public void setLevel(int level)
-