| Modifier and Type | Field and Description |
|---|---|
| private ZstdInputStreamNoFinalizer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ZstdInputStream(InputStream
the stream to wrap inStream, BufferPool the pool to fetch and return buffers bufferPool)create a new decompressing InputStream |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| public void | close()
Overrides java. Implements java. |
| protected void | finalize()
Overrides java. |
| public boolean | |
| public boolean | markSupported()
Overrides java. mark
and reset methods.
|
| public int | read(byte[]
the buffer into which the data is read. dst, int the start offset in array offset, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from this input stream
into an array of bytes.
|
| public int | |
| public static long | |
| public static long | |
| public ZstdInputStream | setContinuous(boolean b)
Don't break on unfinished frames Use case: decompressing files that are not yet finished writing and compressing |
| public ZstdInputStream | |
| public ZstdInputStream | |
| public void | setFinalize(boolean
default `true` - finalizers are enabled finalize)
Deprecated
If you don't rely on finalizers, use `ZstdInputStreamNoFinalizer` instead, instances of
`ZstdInputStream` will always try to close/release in the finalizer.
Enable or disable class finalizers
|
| public ZstdInputStream | |
| public ZstdInputStream | setRefMultipleDDicts(boolean
Enables references table for DDict, so the DDict used for decompression will be
determined per the dictId in the frame, default: false useMultiple)Enable or disable support for multiple dictionary references |
| public long | skip(long
the number of bytes to be skipped. numBytes)Overrides java. n bytes of data from the
input stream.
|
| inner | back to summary |
|---|---|
| private ZstdInputStreamNoFinalizer inner | |
| ZstdInputStream | back to summary |
|---|---|
| public ZstdInputStream(InputStream inStream) throws IOException create a new decompressing InputStream
| |
| ZstdInputStream | back to summary |
|---|---|
| public ZstdInputStream(InputStream inStream, BufferPool bufferPool) throws IOException create a new decompressing InputStream
| |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getContinuous | back to summary |
|---|---|
| public boolean getContinuous() | |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the
| |
| read | back to summary |
|---|---|
| public int read(byte[] dst, int offset, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| recommendedDInSize | back to summary |
|---|---|
| public static long recommendedDInSize() | |
| recommendedDOutSize | back to summary |
|---|---|
| public static long recommendedDOutSize() | |
| setContinuous | back to summary |
|---|---|
| public ZstdInputStream setContinuous(boolean b) Don't break on unfinished frames Use case: decompressing files that are not yet finished writing and compressing | |
| setDict | back to summary |
|---|---|
| public ZstdInputStream setDict(byte[] dict) throws IOException | |
| setDict | back to summary |
|---|---|
| public ZstdInputStream setDict(ZstdDictDecompress dict) throws IOException | |
| setFinalize | back to summary |
|---|---|
| public void setFinalize(boolean finalize)
Deprecated If you don't rely on finalizers, use `ZstdInputStreamNoFinalizer` instead, instances of `ZstdInputStream` will always try to close/release in the finalizer. Enable or disable class finalizers
| |
| setLongMax | back to summary |
|---|---|
| public ZstdInputStream setLongMax(int windowLogMax) throws IOException | |
| setRefMultipleDDicts | back to summary |
|---|---|
| public ZstdInputStream setRefMultipleDDicts(boolean useMultiple) throws IOException Enable or disable support for multiple dictionary references
| |
| skip | back to summary |
|---|---|
| public long skip(long numBytes) throws IOException Overrides java. Doc from java. Skips over and discards
| |