|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
The AbleSerializable interface provides the methods needed to save and restore serializable ABLE beans using a file path and name provided by the implementor.
| Method Summary | |
|---|---|
java.lang.String |
getFileName()
Returns the persistent store file name. |
AbleBean |
restoreFromFile()
Read a serialized bean from the file named previously by the setFileName() method, or from the default name provided by the implementor. |
AbleBean |
restoreFromFile(java.lang.String theFileName)
Read a serialized bean from the specified file. |
void |
saveToFile()
Write a serialized version of this bean to the file named previously by the setFileName(java.lang.String) method, or to the
default name provided by the implementor. |
void |
saveToFile(java.lang.String theFileName)
Write a serialized version of this bean to the specified file. |
void |
setFileName(java.lang.String theFileName)
Sets or changes the persistent store file name. |
| Method Detail |
public void setFileName(java.lang.String theFileName)
theFileName - The new name of the file to which
this bean can be serialized or from which the bean can
be de-serialized. This file name replaces the current
file name.public java.lang.String getFileName()
public void saveToFile()
throws java.io.IOException
setFileName(java.lang.String) method, or to the
default name provided by the implementor.
java.io.IOException - If any error occurs.
public void saveToFile(java.lang.String theFileName)
throws java.io.IOException
theFileName - The name of the file to write.
java.io.IOException - If any error occurs.
public AbleBean restoreFromFile()
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException - If any error occurs.
java.io.IOException - If any error occurs.
public AbleBean restoreFromFile(java.lang.String theFileName)
throws java.lang.ClassNotFoundException,
java.io.IOException
theFileName - The name of the file containing the serialized AbleBean.
java.lang.ClassNotFoundException - If any error occurs.
java.io.IOException - If any error occurs.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||