|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of objects to read and writepublic interface FileHandler<T>
An object that can read and write objects to file.
| Method Summary | |
|---|---|
T |
read(InputStream is)
Read a T from the given stream. |
void |
write(OutputStream os,
T t)
Write a T to the given stream. |
| Method Detail |
|---|
T read(InputStream is)
throws IOException
is - the stream to read from
IOException - if reading fails
void write(OutputStream os,
T t)
throws IOException
os - the stream to write the object tot - the object to write
IOException - if writing fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||