public class TZlibTransport extends TIOStreamTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
TZlibTransport.Factory |
inputStream_, outputStream_knownMessageSize, remainingMessageSize| 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()
Queries whether the transport is open.
|
void |
open()
The streams must already be open.
|
flush, read, writecheckReadBytesAvailable, countConsumedMessageBytes, getConfiguration, getMaxMessageSize, resetConsumedMessageSize, updateKnownMessageSizeconsumeBuffer, getBuffer, getBufferPosition, getBytesRemainingInBuffer, peek, read, readAll, write, writepublic TZlibTransport(TTransport transport) throws TTransportException
transport - the underlying transport to read from and write toTTransportExceptionpublic TZlibTransport(TTransport transport, int compressionLevel) throws TTransportException
transport - the underlying transport to read from and write tocompressionLevel - 0 for no compression, 9 for maximum compressionTTransportExceptionpublic boolean isOpen()
TTransportisOpen 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