public class GenericLoader<T> extends Object
Constructor and Description |
---|
GenericLoader() |
Modifier and Type | Method and Description |
---|---|
T |
loadObject(File file)
Loads the object of type T from file 'file'.
|
T |
loadObject(InputStream in)
Loads the object of type T from input stream.
|
T |
loadObject(String pathAndFileName)
Loads the object of type T from the file at path 'pathAndFileName'.
|
boolean |
saveObject(T object,
File file)
Writes object to the file;
|
boolean |
saveObject(T object,
ObjectOutputStream out)
Writes object to the output stream, returns success
|
boolean |
saveObject(T object,
OutputStream out)
Writes object to the output stream, returns success.
|
boolean |
saveObject(T object,
String pathAndFileName)
Writes object to the file at 'pathAndFileName';
|
public T loadObject(InputStream in)
in
- public T loadObject(File file)
file
- public T loadObject(String pathAndFileName)
pathAndFileName
- public boolean saveObject(T object, ObjectOutputStream out)
object
- out
- public boolean saveObject(T object, OutputStream out)
object
- out
- public boolean saveObject(T object, File file)
object
- file
- Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.