共用方式為


DataOutputStream Constructors

Definition

Overloads

DataOutputStream(Stream)

Creates a new data output stream to write data to the specified underlying output stream.

DataOutputStream(IntPtr, JniHandleOwnership)

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

DataOutputStream(Stream)

Creates a new data output stream to write data to the specified underlying output stream.

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

Parameters

out
Stream

the underlying output stream, to be saved for later use.

Attributes

Remarks

Creates a new data output stream to write data to the specified underlying output stream. The counter written is set to zero.

Java documentation for java.io.DataOutputStream.DataOutputStream(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

DataOutputStream(IntPtr, JniHandleOwnership)

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

protected DataOutputStream (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.DataOutputStream : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.DataOutputStream

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