java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InvalidClassException, InvalidObjectException, NotActiveException, NotSerializableException, OptionalDataException, StreamCorruptedException, WriteAbortedException
- See Also:
- Top Examples, Source Code
protected ObjectStreamException()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1523]Make a singleton class serializable
By Anonymous on 2005/08/25 13:40:41 Rate
//To make a singleton class serializable, you must
//also provide a readResolve method.
// readResolve method to preserve singleton property
private Object readResolve ( ) throws ObjectStreamException {
return INSTANCE;
}
protected ObjectStreamException(String classname)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples