public class TZlibTransport extends TIOStreamTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
TZlibTransport.Factory |
inputStream_, outputStream_| Constructor and Description |
|---|
TZlibTransport(TTransport transport)
Constructs a new TZlibTransport instance.
|
TZlibTransport(TTransport transport,
int compressionLevel)
Constructs a new TZlibTransport instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes both the input and output streams.
|
boolean |
isOpen()
The streams must already be open at construction time, so this should
always return true.
|
void |
open()
The streams must already be open.
|
flush, read, writeconsumeBuffer, getBuffer, getBufferPosition, getBytesRemainingInBuffer, peek, readAll, writepublic TZlibTransport(TTransport transport)
transport - the underlying transport to read from and write topublic TZlibTransport(TTransport transport, int compressionLevel)
transport - the underlying transport to read from and write tocompressionLevel - 0 for no compression, 9 for maximum compressionpublic boolean isOpen()
TIOStreamTransportisOpen in class TIOStreamTransportpublic void open()
throws TTransportException
TIOStreamTransportopen in class TIOStreamTransportTTransportException - if the transport could not be openedpublic void close()
TIOStreamTransportclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class TIOStreamTransport