public abstract class TCharset extends Object implements Comparable<Charset>
| Modifier | Constructor and Description |
|---|---|
protected |
TCharset(String canonicalName,
String[] aliases) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
aliases() |
static SortedMap<String,Charset> |
availableCharsets() |
boolean |
canEncode() |
int |
compareTo(Charset that) |
abstract boolean |
contains(Charset cs) |
CharBuffer |
decode(ByteBuffer bb) |
static Charset |
defaultCharset() |
String |
displayName() |
String |
displayName(Locale locale) |
ByteBuffer |
encode(CharBuffer cb) |
ByteBuffer |
encode(String str) |
boolean |
equals(Object ob) |
static Charset |
forName(String charsetName) |
int |
hashCode() |
boolean |
isRegistered() |
static boolean |
isSupported(String charsetName) |
String |
name() |
abstract CharsetDecoder |
newDecoder() |
abstract CharsetEncoder |
newEncoder() |
String |
toString() |
public static boolean isSupported(String charsetName)
public static Charset defaultCharset() throws ClassNotFoundException, IllegalAccessException, InstantiationException
public final String name()
public String displayName()
public final boolean isRegistered()
public abstract boolean contains(Charset cs)
public abstract CharsetDecoder newDecoder()
public abstract CharsetEncoder newEncoder()
public boolean canEncode()
public final CharBuffer decode(ByteBuffer bb)
public final ByteBuffer encode(CharBuffer cb)
public final ByteBuffer encode(String str)
public final int compareTo(Charset that)
compareTo in interface Comparable<Charset>Copyright © 2021 Systemprogrammierung Mirko Sertic. All rights reserved.