| Modifier and Type | Field and Description |
|---|---|
| private final BufferPool | |
| private long | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final byte[] | |
| private static final int | |
| private final ByteBuffer | |
| private long | |
| private long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | ZstdInputStreamNoFinalizer(InputStream
the stream to wrap inStream)create a new decompressing InputStream |
| public | ZstdInputStreamNoFinalizer(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 synchronized int | available()
Overrides java. |
| public synchronized void | close()
Overrides java. Implements java. |
| private static native long | |
| private native int | |
| private static native int | |
| public synchronized boolean | |
| private native int | |
| public boolean | markSupported()
Overrides java. mark
and reset methods.
|
| public synchronized 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 synchronized int | |
| pack-priv int | |
| public static native long | |
| public static native long | |
| public synchronized ZstdInputStreamNoFinalizer | setContinuous(boolean b)
Don't break on unfinished frames Use case: decompressing files that are not yet finished writing and compressing |
| public synchronized ZstdInputStreamNoFinalizer | |
| public synchronized ZstdInputStreamNoFinalizer | |
| public synchronized ZstdInputStreamNoFinalizer | |
| public synchronized ZstdInputStreamNoFinalizer | |
| public synchronized long | skip(long
the number of bytes to be skipped. numBytes)Overrides java. n bytes of data from the
input stream.
|
| bufferPool | back to summary |
|---|---|
| private final BufferPool bufferPool | |
| dstPos | back to summary |
|---|---|
| private long dstPos | |
| frameFinished | back to summary |
|---|---|
| private boolean frameFinished | |
| isClosed | back to summary |
|---|---|
| private boolean isClosed | |
| isContinuous | back to summary |
|---|---|
| private boolean isContinuous | |
| needRead | back to summary |
|---|---|
| private boolean needRead | |
| src | back to summary |
|---|---|
| private final byte[] src | |
| srcBuffSize | back to summary |
|---|---|
| private static final int srcBuffSize | |
| srcByteBuffer | back to summary |
|---|---|
| private final ByteBuffer srcByteBuffer | |
| srcPos | back to summary |
|---|---|
| private long srcPos | |
| srcSize | back to summary |
|---|---|
| private long srcSize | |
| stream | back to summary |
|---|---|
| private final long stream | |
| ZstdInputStreamNoFinalizer | back to summary |
|---|---|
| public ZstdInputStreamNoFinalizer(InputStream inStream) throws IOException create a new decompressing InputStream
| |
| ZstdInputStreamNoFinalizer | back to summary |
|---|---|
| public ZstdInputStreamNoFinalizer(InputStream inStream, BufferPool bufferPool) throws IOException create a new decompressing InputStream
| |
| available | back to summary |
|---|---|
| public synchronized 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 synchronized void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| createDStream | back to summary |
|---|---|
| private static native long createDStream() | |
| decompressStream | back to summary |
|---|---|
| private native int decompressStream(long stream, byte[] dst, int dst_size, byte[] src, int src_size) | |
| freeDStream | back to summary |
|---|---|
| private static native int freeDStream(long stream) | |
| getContinuous | back to summary |
|---|---|
| public synchronized boolean getContinuous() | |
| initDStream | back to summary |
|---|---|
| private native int initDStream(long stream) | |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the
| |
| read | back to summary |
|---|---|
| public synchronized int read(byte[] dst, int offset, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| read | back to summary |
|---|---|
| public synchronized 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
| |
| readInternal | back to summary |
|---|---|
| pack-priv int readInternal(byte[] dst, int offset, int len) throws IOException | |
| recommendedDInSize | back to summary |
|---|---|
| public static native long recommendedDInSize() | |
| recommendedDOutSize | back to summary |
|---|---|
| public static native long recommendedDOutSize() | |
| setContinuous | back to summary |
|---|---|
| public synchronized ZstdInputStreamNoFinalizer 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 synchronized ZstdInputStreamNoFinalizer setDict(byte[] dict) throws IOException | |
| setDict | back to summary |
|---|---|
| public synchronized ZstdInputStreamNoFinalizer setDict(ZstdDictDecompress dict) throws IOException | |
| setLongMax | back to summary |
|---|---|
| public synchronized ZstdInputStreamNoFinalizer setLongMax(int windowLogMax) throws IOException | |
| setRefMultipleDDicts | back to summary |
|---|---|
| public synchronized ZstdInputStreamNoFinalizer setRefMultipleDDicts(boolean useMultiple) throws IOException | |
| skip | back to summary |
|---|---|
| public synchronized long skip(long numBytes) throws IOException Overrides java. Doc from java. Skips over and discards
| |