|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.FileStorage
public class FileStorage
Save a string to a file
Constructor Summary | |
---|---|
FileStorage(String file)
Creates a new FileStorage object |
Method Summary | |
---|---|
String |
load()
Reads data from file |
void |
save(String data)
Save the string to file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStorage(String file)
file
- The name of the file which the string should
be accessed frinMethod Detail |
---|
public String load()
load
in interface StorageInterface
public void save(String data)
save
in interface StorageInterface
data
- The string to store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |