T - the model typepublic interface ModelStorageHandler<T>
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getModelClass()
Returns the model's java class
|
T |
read(DataInputStream in)
Deserialize a model from an input stream.
|
void |
write(T model,
DataOutputStream out)
Serialize a model to an output stream.
|
Class<T> getModelClass()
T read(DataInputStream in) throws IOException
write(T, java.io.DataOutputStream).in - the input stream.IOExceptionvoid write(T model, DataOutputStream out) throws IOException
read(java.io.DataInputStream).model - the model objectout - the output streamIOExceptionCopyright © 2016 Actian Corporation. All rights reserved.