OutputStreamWriter Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OutputStreamWriter(Stream) |
Creates an OutputStreamWriter that uses the default character encoding. |
OutputStreamWriter(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
OutputStreamWriter(Stream, Charset) |
Creates an OutputStreamWriter that uses the given charset. |
OutputStreamWriter(Stream, CharsetEncoder) |
Creates an OutputStreamWriter that uses the given charset encoder. |
OutputStreamWriter(Stream, String) |
Creates an OutputStreamWriter that uses the named charset. |
OutputStreamWriter(Stream)
Creates an OutputStreamWriter that uses the default character encoding.
[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "")]
public OutputStreamWriter (System.IO.Stream? out);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;)V", "")>]
new Java.IO.OutputStreamWriter : System.IO.Stream -> Java.IO.OutputStreamWriter
Parameters
- out
- Stream
An OutputStream
- Attributes
Remarks
Creates an OutputStreamWriter that uses the default character encoding.
Java documentation for java.io.OutputStreamWriter.OutputStreamWriter(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
OutputStreamWriter(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected OutputStreamWriter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.OutputStreamWriter : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.OutputStreamWriter
Parameters
- 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
OutputStreamWriter(Stream, Charset)
Creates an OutputStreamWriter that uses the given charset.
[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V", "")]
public OutputStreamWriter (System.IO.Stream? out, Java.Nio.Charset.Charset? cs);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V", "")>]
new Java.IO.OutputStreamWriter : System.IO.Stream * Java.Nio.Charset.Charset -> Java.IO.OutputStreamWriter
Parameters
- out
- Stream
An OutputStream
- cs
- Charset
A charset
- Attributes
Remarks
Creates an OutputStreamWriter that uses the given charset.
Added in 1.4.
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
OutputStreamWriter(Stream, CharsetEncoder)
Creates an OutputStreamWriter that uses the given charset encoder.
[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/CharsetEncoder;)V", "")]
public OutputStreamWriter (System.IO.Stream? out, Java.Nio.Charset.CharsetEncoder? enc);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/nio/charset/CharsetEncoder;)V", "")>]
new Java.IO.OutputStreamWriter : System.IO.Stream * Java.Nio.Charset.CharsetEncoder -> Java.IO.OutputStreamWriter
Parameters
- out
- Stream
An OutputStream
- enc
- CharsetEncoder
A charset encoder
- Attributes
Remarks
Creates an OutputStreamWriter that uses the given charset encoder.
Added in 1.4.
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
OutputStreamWriter(Stream, String)
Creates an OutputStreamWriter that uses the named charset.
[Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "")]
public OutputStreamWriter (System.IO.Stream? out, string? charsetName);
[<Android.Runtime.Register(".ctor", "(Ljava/io/OutputStream;Ljava/lang/String;)V", "")>]
new Java.IO.OutputStreamWriter : System.IO.Stream * string -> Java.IO.OutputStreamWriter
Parameters
- out
- Stream
An OutputStream
- charsetName
- String
The name of a supported
java.nio.charset.Charset charset
- Attributes
Exceptions
if charsetName
is null
.
if the encoding specified by charsetName
cannot be found.
Remarks
Creates an OutputStreamWriter that uses the named 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.