|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.StreamStorage
public class StreamStorage
Load and Save a string to a InputStream and OutputStream
Constructor Summary | |
---|---|
StreamStorage(InputStream input,
OutputStream output)
Creates a new FileStorage object |
Method Summary | |
---|---|
String |
load()
Reads data from stream |
void |
save(String data)
Save the string to stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamStorage(InputStream input, OutputStream output)
input
- The InputStream that data should be read from, if null nothing will be readoutput
- The OutputStream that data should be written to, if null nothing will be writtenMethod 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 |