Charset Class

Definition

A named mapping between sequences of sixteen-bit Unicode ".

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

Remarks

Java documentation for 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.

Constructors

Charset(IntPtr, JniHandleOwnership)

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

Charset(String, String[])

Initializes a new charset with the given canonical name and alias set.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsRegistered

Tells whether or not this charset is 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 a set containing this charset's aliases.

AvailableCharsets()

Constructs a sorted map from canonical charset names to charset objects.

CanEncode()

Tells whether or not this charset supports encoding.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CompareTo(Charset)

Compares this charset to another.

Contains(Charset)

Tells whether or not this charset contains the given charset.

Decode(ByteBuffer)

Convenience method that decodes bytes in this charset into Unicode characters.

DefaultCharset()

Returns the default charset of this Java virtual machine.

DisplayName()

Returns this charset's human-readable name for the default locale.

DisplayName(Locale)

Returns this charset's human-readable name for the given locale.

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

Convenience method that encodes Unicode characters into bytes in this charset.

Encode(String)

Convenience method that encodes a string into bytes in this charset.

Equals(Object)

Tells whether or not this object is equal to another.

ForName(String)

Returns a charset object for the named charset.

GetHashCode()

Computes a hashcode for this charset.

IsSupported(String)

Tells whether the named charset is supported.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Name()

Returns this charset's canonical name.

NewDecoder()

Constructs a new decoder for this charset.

NewEncoder()

Constructs a new encoder for this charset.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

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

Returns a string describing this charset.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IComparable.CompareTo(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