T
- The type of the object to be restoredpublic interface StorableObject<T>
LogOps
Modifier and Type | Method and Description |
---|---|
T |
restore(ObjectInputStream in)
Restore the persistent fields and return new instance.
|
void |
store(ObjectOutputStream out)
Store the persistent fields
|
void store(ObjectOutputStream out) throws IOException
out
- ObjectOutputStream in which to store the object.IOException
- if an IO related exception occurs.T restore(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- ObjectInputStream from which to read the object.IOException
- if an IO related exception occurs.ClassNotFoundException
- if class of object is not found.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.