Compartir a través de


DeflaterOutputStream Constructors

Definition

Overloads

DeflaterOutputStream(Stream)

Creates a new output stream with a default compressor and buffer size.

DeflaterOutputStream(IntPtr, JniHandleOwnership)

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

DeflaterOutputStream(Stream, Deflater)

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

DeflaterOutputStream(Stream, Boolean)

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

DeflaterOutputStream(Stream, Deflater, Boolean)

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

DeflaterOutputStream(Stream, Deflater, Int32)

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

DeflaterOutputStream(Stream, Deflater, Int32, Boolean)

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

DeflaterOutputStream(Stream)

Creates a new output stream with a default compressor and buffer size.

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

Parameters

out
Stream

the output stream

Attributes

Remarks

Creates a new output stream with a default compressor and buffer size.

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

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(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

DeflaterOutputStream(IntPtr, JniHandleOwnership)

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

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

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

DeflaterOutputStream(Stream, Deflater)

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

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

Parameters

out
Stream

the output stream

def
Deflater

the compressor ("deflater")

Attributes

Remarks

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

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

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater).

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

DeflaterOutputStream(Stream, Boolean)

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

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

Parameters

out
Stream

the output stream

syncFlush
Boolean

if true the #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

Remarks

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

Added in 1.7.

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(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

DeflaterOutputStream(Stream, Deflater, Boolean)

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

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

Parameters

out
Stream

the output stream

def
Deflater

the compressor ("deflater")

syncFlush
Boolean

if true the #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

Remarks

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

Added in 1.7.

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, 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

DeflaterOutputStream(Stream, Deflater, Int32)

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

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

Parameters

out
Stream

the output stream

def
Deflater

the compressor ("deflater")

size
Int32

the output buffer size

Attributes

Remarks

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

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

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, 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

DeflaterOutputStream(Stream, Deflater, Int32, Boolean)

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

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

Parameters

out
Stream

the output stream

def
Deflater

the compressor ("deflater")

size
Int32

the output buffer size

syncFlush
Boolean

if true the #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

Remarks

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

Added in 1.7.

Java documentation for java.util.zip.DeflaterOutputStream.DeflaterOutputStream(java.io.OutputStream, java.util.zip.Deflater, 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