Class TZlibTransport

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TZlibTransport
    extends TIOStreamTransport
    TZlibTransport deflates on write and inflates on read.
    • Constructor Detail

      • TZlibTransport

        public TZlibTransport​(TTransport transport)
        Constructs a new TZlibTransport instance.
        Parameters:
        transport - the underlying transport to read from and write to
      • TZlibTransport

        public TZlibTransport​(TTransport transport,
                              int compressionLevel)
        Constructs a new TZlibTransport instance.
        Parameters:
        transport - the underlying transport to read from and write to
        compressionLevel - 0 for no compression, 9 for maximum compression