|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.gidlet.StringStore
public class StringStore
Wrapper class for MIDlet's RMS (record managing system) based on class
RecordStore for storing strings exclusively.
A record store belongs to the "MIDlet suite" identified by the MIDlet-name
and the MIDlet-vendor as defined in the application descriptor (JAD file).
It has a record store name that must be unique within the MIDlet suite.
Constructor Summary | |
---|---|
StringStore(java.lang.String storeName)
Creates a StringStore instance with given record store name. |
Method Summary | |
---|---|
boolean |
append(java.lang.String s)
Appends string data to the end of the record store. |
boolean |
delete()
Deletes record store. |
boolean |
exists()
Checks if the record store exists. |
int |
getAvailableSpace()
Returns amount of additional room available for record store to grow. |
int |
getUsedSpace()
Returns amount of space, that the record store occupies. |
java.lang.String |
read()
Returns content of the StringStore. |
boolean |
write(java.lang.String s)
Writes string data the record store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringStore(java.lang.String storeName)
Method Detail |
---|
public java.lang.String read()
public boolean append(java.lang.String s)
public boolean write(java.lang.String s)
public boolean delete()
public boolean exists()
public int getAvailableSpace()
public int getUsedSpace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |