Class GZipStream

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

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

      • GZipStream

        public GZipStream​(Stream stream,
                          int mode)
                   throws IOException
        Creates a GZipStream 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.
        Throws:
        IOException
        Since:
        TotalCross 1.12