|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.JarFileStorage
public class JarFileStorage
An implementation of StorageInterface
that reads data from a
file inside a jar file
Constructor Summary | |
---|---|
JarFileStorage(String file)
Creates a new FileStorage object |
Method Summary | |
---|---|
String |
load()
Read data from the storage as a string |
void |
save(String data)
Store the specified string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JarFileStorage(String file)
file
- The name of the file within the jar-file which the string should
be accessed fromMethod Detail |
---|
public String load()
StorageInterface
load
in interface StorageInterface
public void save(String data)
StorageInterface
save
in interface StorageInterface
data
- String to store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |