S
- type of the object to deserializepublic static interface StandardSerializer.ReadStrategy<S extends Serializable>
Modifier and Type | Method and Description |
---|---|
S |
read(ObjectInputStream objectInputStream)
Reads the object.
|
S read(ObjectInputStream objectInputStream) throws ClassNotFoundException, IOException
Implementation example:
@Override public MyObject read(ObjectInputStream objectInputStream) { return (MyObject) objectInputStream.readObject(); }
objectInputStream
- object input streamClassNotFoundException
- if the class of a serialized object
cannot be foundIOException
- any of the usual Input/Output related
exceptionsCopyright © 2015. All Rights Reserved.