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 @PolyNull SerializableCharset |
forCharset(@PolyNull Charset charset)
Returns a SerializableCharset wrapping the given Charset, or null if the
charset is null. |
Charset |
getCharset()
Returns the wrapped
Charset. |
public static @PolyNull SerializableCharset forCharset(@PolyNull Charset charset)
charset is null.charset - Character set to wrap, or nullCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.