|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.util.SerializableCharset
public class SerializableCharset
Serializable wrapper around a 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.
| Field Summary | |
|---|---|
private Charset |
charset
|
private String |
charsetName
|
| Constructor Summary | |
|---|---|
private |
SerializableCharset(Charset charset)
Creates a SerializableCharset. |
| Method Summary | |
|---|---|
static SerializableCharset |
forCharset(Charset charset)
Returns a SerializableCharset wrapping the given Charset, or null if the |
Charset |
getCharset()
Returns the wrapped Charset. |
private void |
readObject(ObjectInputStream in)
Per Serializable. |
private void |
writeObject(ObjectOutputStream out)
Per Serializable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Charset charset
private String charsetName
| Constructor Detail |
|---|
private SerializableCharset(Charset charset)
forCharset(Charset).
charset - Character set; must not be null| Method Detail |
|---|
private void writeObject(ObjectOutputStream out)
throws IOException
Serializable.
IOException
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
Serializable.
IOException
ClassNotFoundExceptionpublic Charset getCharset()
Charset.
public static SerializableCharset forCharset(Charset charset)
charset - Character set to wrap, or null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||