Dela via


Deflater Constructors

Definition

Overloads

Deflater()

Creates a new compressor with the default compression level.

Deflater(Int32)

Creates a new compressor using the specified compression level.

Deflater(Int32, Boolean)

Creates a new compressor using the specified compression level.

Deflater(IntPtr, JniHandleOwnership)

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

Deflater()

Creates a new compressor with the default compression level.

[Android.Runtime.Register(".ctor", "()V", "")]
public Deflater ();
Attributes

Remarks

Creates a new compressor with the default compression level. Compressed data will be generated in ZLIB format.

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

Deflater(Int32)

Creates a new compressor using the specified compression level.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public Deflater (int level);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Zip.Deflater : int -> Java.Util.Zip.Deflater

Parameters

level
Int32

the compression level (0-9)

Attributes

Remarks

Creates a new compressor using the specified compression level. Compressed data will be generated in ZLIB format.

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

Deflater(Int32, Boolean)

Creates a new compressor using the specified compression level.

[Android.Runtime.Register(".ctor", "(IZ)V", "")]
public Deflater (int level, bool nowrap);
[<Android.Runtime.Register(".ctor", "(IZ)V", "")>]
new Java.Util.Zip.Deflater : int * bool -> Java.Util.Zip.Deflater

Parameters

level
Int32

the compression level (0-9)

nowrap
Boolean

if true then use GZIP compatible compression

Attributes

Remarks

Creates a new compressor using the specified compression level. If 'nowrap' is true then the ZLIB header and checksum fields will not be used in order to support the compression format used in both GZIP and PKZIP.

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

Deflater(IntPtr, JniHandleOwnership)

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

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

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