|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.StringStorage
public class StringStorage
Implements a storage that stores the data in a String in memory
Constructor Summary | |
---|---|
StringStorage()
Creates a new empty storage |
|
StringStorage(String str)
Creates a new storage based on a String |
Method Summary | |
---|---|
String |
load()
Read data from the storage as a string |
void |
save(String str)
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 StringStorage()
public StringStorage(String str)
str
- String with data to store in the newly created storageMethod Detail |
---|
public void save(String str)
StorageInterface
save
in interface StorageInterface
str
- String to storepublic String load()
StorageInterface
load
in interface StorageInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |