Share via


ZipOutputStream Constructors

Definition

Overloads

ZipOutputStream(Stream)

Creates a new ZIP output stream.

ZipOutputStream(IntPtr, JniHandleOwnership)

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

ZipOutputStream(Stream, Charset)

Creates a new ZIP output stream.

ZipOutputStream(Stream)

Creates a new ZIP output stream.

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

Parameters

out
Stream

the actual output stream

Attributes

Remarks

Creates a new ZIP output stream.

The UTF-8 java.nio.charset.Charset charset is used to encode the entry names and comments.

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

ZipOutputStream(IntPtr, JniHandleOwnership)

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

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

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

ZipOutputStream(Stream, Charset)

Creates a new ZIP output stream.

[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V", "", ApiSince=24)]
public ZipOutputStream (System.IO.Stream? out, Java.Nio.Charset.Charset? charset);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V", "", ApiSince=24)>]
new Java.Util.Zip.ZipOutputStream : System.IO.Stream * Java.Nio.Charset.Charset -> Java.Util.Zip.ZipOutputStream

Parameters

out
Stream

the actual output stream

charset
Charset

the java.nio.charset.Charset charset to be used to encode the entry names and comments

Attributes

Remarks

Creates a new ZIP output stream.

Added in 1.7.

Java documentation for java.util.zip.ZipOutputStream.ZipOutputStream(java.io.OutputStream, java.nio.charset.Charset).

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