Class DeflatingInputStream
java.lang.Object
java.io.InputStream
org.apache.sshd.contrib.common.compression.DeflatingInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutputStreamprivate InputStreamprivate final byte[]private final byte[]private int -
Constructor Summary
ConstructorsConstructorDescriptionDeflatingInputStream(InputStream inputStream, ExposedBufferByteArrayOutputStream baos, OutputStream compressor) -
Method Summary
Methods inherited from class InputStream
markSupported
-
Field Details
-
baos
-
readPos
private int readPos -
inputStream
-
compressor
-
readBuf
private final byte[] readBuf -
oneByte
private final byte[] oneByte
-
-
Constructor Details
-
DeflatingInputStream
public DeflatingInputStream(InputStream inputStream, ExposedBufferByteArrayOutputStream baos, OutputStream compressor)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
fillCompressedBuffer
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-