|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.utils.GenericLoader<T>
public class GenericLoader<T>

| Constructor Summary | |
|---|---|
GenericLoader()
|
|
| Method Summary | |
|---|---|
T |
loadObject(java.io.File file)
Loads the object of type T from file 'file'. |
T |
loadObject(java.io.InputStream in)
Loads the object of type T from input stream. |
T |
loadObject(java.lang.String pathAndFileName)
Loads the object of type T from the file at path 'pathAndFileName'. |
boolean |
saveObject(T object,
java.io.File file)
Writes object to the file; |
boolean |
saveObject(T object,
java.io.ObjectOutputStream out)
Writes object to the output stream, returns success |
boolean |
saveObject(T object,
java.io.OutputStream out)
Writes object to the output stream, returns success. |
boolean |
saveObject(T object,
java.lang.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(java.io.InputStream in)
in -
public T loadObject(java.io.File file)
file -
public T loadObject(java.lang.String pathAndFileName)
pathAndFileName -
public boolean saveObject(T object,
java.io.ObjectOutputStream out)
object - out -
public boolean saveObject(T object,
java.io.OutputStream out)
object - out -
public boolean saveObject(T object,
java.io.File file)
object - file -
public boolean saveObject(T object,
java.lang.String pathAndFileName)
object - pathAndFileName -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||