|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 serializepublic Record(javax.microedition.rms.RecordStore store, ISerializable serializable, int recordId)
store
- the record storeserializable
- the object to serializerecordId
- the record identifierMethod Detail |
---|
public void persist()
persist
in interface IRecord
public void restore()
restore
in interface IRecord
public void delete()
delete
in interface IRecord
public void marshall(java.io.OutputStream stream) throws java.io.IOException
marshall
in interface ISerializable
stream
- the stream to write to
java.io.IOException
- an io exception occurspublic void unmarshall(java.io.InputStream stream) throws java.io.IOException
unmarshall
in interface ISerializable
stream
- the stream to read from
java.io.IOException
- an io exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |