|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.GenericLoader<T>
public class GenericLoader<T>
Constructor Summary | |
---|---|
GenericLoader()
|
Method Summary | |
---|---|
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'; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericLoader()
Method Detail |
---|
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
-
public boolean saveObject(T object, String pathAndFileName)
object
- pathAndFileName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |