InputStreamReader Constructors
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.
InputStreamReader(Stream) |
Creates an InputStreamReader that uses the default charset. |
InputStreamReader(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
InputStreamReader(Stream, Charset) |
Creates an InputStreamReader that uses the given charset. |
InputStreamReader(Stream, CharsetDecoder) |
Creates an InputStreamReader that uses the given charset decoder. |
InputStreamReader(Stream, String) |
Creates an InputStreamReader that uses the named charset. |
Creates an InputStreamReader that uses the default charset.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")]
public InputStreamReader (System.IO.Stream? in);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")>]
new Java.IO.InputStreamReader : System.IO.Stream -> Java.IO.InputStreamReader
Parameters
- in
- Stream
An InputStream
- Attributes
Remarks
Creates an InputStreamReader that uses the default charset.
Java documentation for java.io.InputStreamReader.InputStreamReader(java.io.InputStream)
.
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
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected InputStreamReader (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.InputStreamReader : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.InputStreamReader
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
Creates an InputStreamReader that uses the given charset.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V", "")]
public InputStreamReader (System.IO.Stream? in, Java.Nio.Charset.Charset? cs);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V", "")>]
new Java.IO.InputStreamReader : System.IO.Stream * Java.Nio.Charset.Charset -> Java.IO.InputStreamReader
Parameters
- in
- Stream
An InputStream
- cs
- Charset
A charset
- Attributes
Remarks
Creates an InputStreamReader 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
Creates an InputStreamReader that uses the given charset decoder.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/nio/charset/CharsetDecoder;)V", "")]
public InputStreamReader (System.IO.Stream? in, Java.Nio.Charset.CharsetDecoder? dec);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/nio/charset/CharsetDecoder;)V", "")>]
new Java.IO.InputStreamReader : System.IO.Stream * Java.Nio.Charset.CharsetDecoder -> Java.IO.InputStreamReader
Parameters
- in
- Stream
An InputStream
- dec
- CharsetDecoder
A charset decoder
- Attributes
Remarks
Creates an InputStreamReader that uses the given charset decoder.
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
Creates an InputStreamReader that uses the named charset.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/lang/String;)V", "")]
public InputStreamReader (System.IO.Stream? in, string? charsetName);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;Ljava/lang/String;)V", "")>]
new Java.IO.InputStreamReader : System.IO.Stream * string -> Java.IO.InputStreamReader
Parameters
- in
- Stream
An InputStream
- 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 InputStreamReader 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.