Charset Class

Definition

A charset is a named mapping between Unicode characters and byte sequences.

[Android.Runtime.Register("java/nio/charset/Charset", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class Charset : Java.Lang.Object, IDisposable, Java.Lang.IComparable
type Charset = class
    inherit Object
    interface IComparable
    interface IJavaObject
    interface IDisposable
Inheritance
Charset
Attributes
Implements

Remarks

Android platform documentation

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.

Constructors

Charset(IntPtr, JniHandleOwnership)

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

Charset(String, String[])

Constructs a Charset object.

Properties

Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsRegistered

Returns true if this charset is known to be registered in the IANA Charset Registry.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Aliases()

Returns an unmodifiable set of this charset's aliases.

AvailableCharsets()

Returns an immutable case-insensitive map from canonical names to Charset instances.

CanEncode()

Returns true if this charset supports encoding, false otherwise.

Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CompareTo(Charset)

Compares this charset with the given charset.

Contains(Charset)

Determines whether this charset is a superset of the given charset.

Decode(ByteBuffer)

Returns a new CharBuffer containing the characters decoded from buffer.

DefaultCharset()

Returns the system's default charset.

DisplayName()

Returns the name of this charset for the default locale.

DisplayName(Locale)

Returns the name of this charset for the specified locale.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Encode(CharBuffer)

Returns a new ByteBuffer containing the bytes encoding the characters from buffer.

Encode(String)

Returns a new ByteBuffer containing the bytes encoding the characters from s.

Equals(Object)

Determines whether this charset equals to the given object.

ForName(String)

Returns a Charset instance for the named charset.

GetHashCode()

Gets the hash code of this charset.

IsSupported(String)

Determines whether the specified charset is supported by this runtime.

JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Name()

Returns the canonical name of this charset.

NewDecoder()

Returns a new instance of a decoder for this charset.

NewEncoder()

Returns a new instance of an encoder for this charset.

Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Gets a string representation of this charset.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IComparable.CompareTo(Object)
IJavaObjectEx.IsProxy (Inherited from Object)
IJavaObjectEx.KeyHandle (Inherited from Object)
IJavaObjectEx.NeedsActivation (Inherited from Object)
IJavaObjectEx.ToLocalJniHandle() (Inherited from Object)
IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to