public class SerializableCharset extends Object implements Serializable
Charset.
It serializes itself by writing out the name of the character set, for example "ISO-8859-1". On the other side, it deserializes itself by looking for a charset with the same name.
A SerializableCharset is immutable.
| Modifier and Type | Method and Description |
|---|---|
static SerializableCharset |
forCharset(Charset charset)
Returns a SerializableCharset wrapping the given Charset, or null if the
charset is null. |
Charset |
getCharset()
Returns the wrapped
Charset. |
public static SerializableCharset forCharset(Charset charset)
charset is null.charset - Character set to wrap, or nullCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.