Java java.nio.charset Charset fields, constructors, methods, implement or subclass

Example usage for Java java.nio.charset Charset fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.charset Charset.

The text is from its open source code.

Subclass

java.nio.charset.Charset has subclasses.
Click this link to see all its subclasses.

Field

CharsetdefaultCharset
Stringname
String[]aliases

Method

SortedMapavailableCharsets()
Constructs a sorted map from canonical charset names to charset objects.
booleancanEncode()
Tells whether or not this charset supports encoding.
intcompareTo(Charset that)
Compares this charset to another.
booleancontains(Charset cs)
Tells whether or not this charset contains the given charset.
CharBufferdecode(ByteBuffer bb)
Convenience method that decodes bytes in this charset into Unicode characters.
StringdisplayName()
Returns this charset's human-readable name for the default locale.
StringdisplayName(Locale locale)
Returns this charset's human-readable name for the given locale.
ByteBufferencode(CharBuffer cb)
Convenience method that encodes Unicode characters into bytes in this charset.
ByteBufferencode(String str)
Convenience method that encodes a string into bytes in this charset.
booleanequals(Object ob)
Tells whether or not this object is equal to another.
CharsetforName(String charsetName)
Returns a charset object for the named charset.
inthashCode()
Computes a hashcode for this charset.
booleanisRegistered()
Tells whether or not this charset is registered in the IANA Charset Registry.
booleanisSupported(String charsetName)
Tells whether the named charset is supported.
CharsetDecodernewDecoder()
Constructs a new decoder for this charset.
CharsetEncodernewEncoder()
Constructs a new encoder for this charset.
StringtoString()
Returns a string describing this charset.