Class BrotliCompressorInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.compressors.CompressorInputStream
org.apache.commons.compress.compressors.brotli.BrotliCompressorInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable, InputStreamStatistics
public class BrotliCompressorInputStream
extends CompressorInputStream
implements InputStreamStatistics
CompressorInputStream implementation to decode Brotli encoded stream. Library relies on Google brotli- Since:
- 1.14
-
Constructor Summary
ConstructorsConstructorDescriptionBrotliCompressorInputStream(InputStream inputStream) Construct a new instance. -
Method Summary
Methods inherited from class CompressorInputStream
count, count, getBytesRead, getCount, getUncompressedCount, pushedBackBytesMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface InputStreamStatistics
getUncompressedCount
-
Constructor Details
-
BrotliCompressorInputStream
Construct a new instance.- Parameters:
inputStream- underlying data source.- Throws:
IOException- in case of corrupted data or source stream problems.
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getCompressedCount
Description copied from interface:InputStreamStatisticsGets the amount of raw or compressed bytes read by the stream.- Specified by:
getCompressedCountin interfaceInputStreamStatistics- Returns:
- the amount of raw or compressed bytes read by the stream.
- Since:
- 1.17
-
mark
- Overrides:
markin classInputStream
-
markSupported
- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
toString
-