次の方法で共有


InputStreamReader.Encoding Property

Definition

Returns the name of the character encoding being used by this stream.

public virtual string? Encoding { [Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")] get; }
[<get: Android.Runtime.Register("getEncoding", "()Ljava/lang/String;", "GetGetEncodingHandler")>]
member this.Encoding : string

Property Value

The historical name of this encoding, or null if the stream has been closed

Attributes

Remarks

Returns the name of the character encoding being used by this stream.

If the encoding has an historical name then that name is returned; otherwise the encoding's canonical name is returned.

If this instance was created with the #InputStreamReader(InputStream, String) constructor then the returned name, being unique for the encoding, may differ from the name passed to the constructor. This method will return null if the stream has been closed.

Java documentation for java.io.InputStreamReader.getEncoding().

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