|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.io.Record
public final class Record
This class handles serialization as a record.
| Constructor Summary | |
|---|---|
Record(javax.microedition.rms.RecordStore store,
ISerializable serializable)
Create a buffer record. |
|
Record(javax.microedition.rms.RecordStore store,
ISerializable serializable,
int recordId)
Create a record from a given identifier. |
|
| Method Summary | |
|---|---|
void |
delete()
Delete the record. |
void |
marshall(java.io.OutputStream stream)
Write to an output stream. |
void |
persist()
Save the record. |
void |
restore()
Load the record. |
void |
unmarshall(java.io.InputStream stream)
Read from an input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Record(javax.microedition.rms.RecordStore store,
ISerializable serializable)
store - the record storeserializable - the object to serialize
public Record(javax.microedition.rms.RecordStore store,
ISerializable serializable,
int recordId)
store - the record storeserializable - the object to serializerecordId - the record identifier| Method Detail |
|---|
public void persist()
persist in interface IRecordpublic void restore()
restore in interface IRecordpublic void delete()
delete in interface IRecord
public void marshall(java.io.OutputStream stream)
throws java.io.IOException
marshall in interface ISerializablestream - the stream to write to
java.io.IOException - an io exception occurs
public void unmarshall(java.io.InputStream stream)
throws java.io.IOException
unmarshall in interface ISerializablestream - the stream to read from
java.io.IOException - an io exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||