Condividi tramite


InputStreamReader Constructors

Definition

Overloads

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.

InputStreamReader(Stream)

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

InputStreamReader(IntPtr, JniHandleOwnership)

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

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

InputStreamReader(Stream, Charset)

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.

Java documentation for java.io.InputStreamReader.InputStreamReader(java.io.InputStream, 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

InputStreamReader(Stream, CharsetDecoder)

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.

Java documentation for java.io.InputStreamReader.InputStreamReader(java.io.InputStream, java.nio.charset.CharsetDecoder).

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

InputStreamReader(Stream, String)

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.

Java documentation for java.io.InputStreamReader.InputStreamReader(java.io.InputStream, java.lang.String).

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