Share via


GZIPOutputStream Constructors

Definition

Overloads

GZIPOutputStream(Stream)

Creates a new output stream with a default buffer size.

GZIPOutputStream(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

GZIPOutputStream(Stream, Boolean)

Creates a new output stream with a default buffer size and the specified flush mode.

GZIPOutputStream(Stream, Int32)

Creates a new output stream with the specified buffer size.

GZIPOutputStream(Stream, Int32, Boolean)

Creates a new output stream with the specified buffer size and flush mode.

GZIPOutputStream(Stream)

Creates a new output stream with a default buffer size.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "")]
public GZIPOutputStream (System.IO.Stream? out);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "")>]
new Java.Util.Zip.GZIPOutputStream : System.IO.Stream -> Java.Util.Zip.GZIPOutputStream

Parameters

out
Stream

the output stream

Attributes

Exceptions

Remarks

Creates a new output stream with a default buffer size.

The new output stream instance is created as if by invoking the 2-argument constructor GZIPOutputStream(out, false).

Java documentation for java.util.zip.GZIPOutputStream.GZIPOutputStream(java.io.OutputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GZIPOutputStream(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected GZIPOutputStream (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Zip.GZIPOutputStream : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Zip.GZIPOutputStream

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GZIPOutputStream(Stream, Boolean)

Creates a new output stream with a default buffer size and the specified flush mode.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Z)V", "")]
public GZIPOutputStream (System.IO.Stream? out, bool syncFlush);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Z)V", "")>]
new Java.Util.Zip.GZIPOutputStream : System.IO.Stream * bool -> Java.Util.Zip.GZIPOutputStream

Parameters

out
Stream

the output stream

syncFlush
Boolean

if true invocation of the inherited DeflaterOutputStream#flush() flush() method of this instance flushes the compressor with flush mode Deflater#SYNC_FLUSH before flushing the output stream, otherwise only flushes the output stream

Attributes

Exceptions

Remarks

Creates a new output stream with a default buffer size and the specified flush mode.

Added in 1.7.

Java documentation for java.util.zip.GZIPOutputStream.GZIPOutputStream(java.io.OutputStream, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GZIPOutputStream(Stream, Int32)

Creates a new output stream with the specified buffer size.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;I)V", "")]
public GZIPOutputStream (System.IO.Stream? out, int size);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;I)V", "")>]
new Java.Util.Zip.GZIPOutputStream : System.IO.Stream * int -> Java.Util.Zip.GZIPOutputStream

Parameters

out
Stream

the output stream

size
Int32

the output buffer size

Attributes

Exceptions

Remarks

Creates a new output stream with the specified buffer size.

The new output stream instance is created as if by invoking the 3-argument constructor GZIPOutputStream(out, size, false).

Android-note: Android limits the number of UnbufferedIO operations that can be performed, so consider using buffered inputs with this class. More information can be found in the UnbufferedIO and StrictMode documentation.

Java documentation for java.util.zip.GZIPOutputStream.GZIPOutputStream(java.io.OutputStream, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GZIPOutputStream(Stream, Int32, Boolean)

Creates a new output stream with the specified buffer size and flush mode.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;IZ)V", "")]
public GZIPOutputStream (System.IO.Stream? out, int size, bool syncFlush);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;IZ)V", "")>]
new Java.Util.Zip.GZIPOutputStream : System.IO.Stream * int * bool -> Java.Util.Zip.GZIPOutputStream

Parameters

out
Stream

the output stream

size
Int32

the output buffer size

syncFlush
Boolean

if true invocation of the inherited DeflaterOutputStream#flush() flush() method of this instance flushes the compressor with flush mode Deflater#SYNC_FLUSH before flushing the output stream, otherwise only flushes the output stream

Attributes

Exceptions

Remarks

Creates a new output stream with the specified buffer size and flush mode.

Added in 1.7.

Java documentation for java.util.zip.GZIPOutputStream.GZIPOutputStream(java.io.OutputStream, int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to