Java.Util.Zip.GZIPOutputStream Class
The GZIPOutputStream class is used to write data to a stream in the GZIP storage format.

See Also: GZIPOutputStream Members

Syntax

[Android.Runtime.Register("java/util/zip/GZIPOutputStream", DoNotGenerateAcw=true)]
public class GZIPOutputStream : DeflaterOutputStream

Remarks

The GZIPOutputStream class is used to write data to a stream in the GZIP storage format.

Example

Using GZIPOutputStream is a little easier than Java.Util.Zip.ZipOutputStream because GZIP is only for compression, and is not a container for multiple files. This code creates a GZIP stream, similar to the gzip(1) utility.

java Example

 OutputStream os = ...
 byte[] bytes = ...
 GZIPOutputStream zos = new GZIPOutputStream(new BufferedOutputStream(os));
 try {
     zos.write(bytes);
 } finally {
     zos.close();
 }
 

[Android Documentation]

Requirements

Namespace: Java.Util.Zip
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1