Class ZLibStream

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

    public class ZLibStream
    extends CompressedStream
    This class implements a stream filter for compressing or uncompressing data stored in the ZLib compression format.
    Since:
    TotalCross 1.10
    See Also:
    ZLib
    • Constructor Detail

      • ZLibStream

        public ZLibStream​(Stream stream,
                          int mode)
        Creates a ZLibStream object that may be used to read compressed data from the given stream, or to write compressed data to the given stream.
        Parameters:
        stream - input stream.
        mode - its value must be either DEFLATE or INFLATE.
        Since:
        TotalCross 1.10