|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbandy.io.rms.RmsRecord
public class RmsRecord
In order to have a more efficient way to read records all access
is encapsulated in this class, hence guaranteeing that:
1. Reuse the raw byte array
2. Reuse the input streams
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
| Constructor Summary | |
|---|---|
RmsRecord(javax.microedition.rms.RecordStore rs)
|
|
RmsRecord(javax.microedition.rms.RecordStore rs,
int initialRecordSize)
|
|
| Method Summary | |
|---|---|
byte[] |
getByteArray()
Return the current record as byte array |
int |
getLength()
TODO comment! |
byte[] |
moveTo(int id)
Move the access 'pointer' to the index given |
boolean |
readBoolean()
|
byte |
readByte()
|
char |
readChar()
|
double |
readDouble()
|
float |
readFloat()
|
void |
readFully(byte[] b)
|
void |
readFully(byte[] b,
int off,
int len)
|
int |
readInt()
|
java.lang.String |
readLine()
TODO comment! |
long |
readLong()
|
short |
readShort()
|
int |
readUnsignedByte()
|
int |
readUnsignedShort()
|
java.lang.String |
readUTF()
|
int |
skipBytes(int arg0)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RmsRecord(javax.microedition.rms.RecordStore rs)
public RmsRecord(javax.microedition.rms.RecordStore rs,
int initialRecordSize)
| Method Detail |
|---|
public byte[] getByteArray()
public int getLength()
public byte[] moveTo(int id)
id - Index of the record store to read from
public void readFully(byte[] b)
readFully in interface java.io.DataInput
public void readFully(byte[] b,
int off,
int len)
readFully in interface java.io.DataInput
public boolean readBoolean()
throws java.io.IOException
readBoolean in interface java.io.DataInputjava.io.IOExceptionpublic byte readByte()
readByte in interface java.io.DataInputpublic int readUnsignedByte()
readUnsignedByte in interface java.io.DataInputpublic short readShort()
readShort in interface java.io.DataInputpublic int readUnsignedShort()
readUnsignedShort in interface java.io.DataInputpublic char readChar()
readChar in interface java.io.DataInputpublic int readInt()
readInt in interface java.io.DataInputpublic long readLong()
readLong in interface java.io.DataInputpublic java.lang.String readUTF()
readUTF in interface java.io.DataInputpublic int skipBytes(int arg0)
skipBytes in interface java.io.DataInputpublic float readFloat()
readFloat in interface java.io.DataInputpublic double readDouble()
readDouble in interface java.io.DataInput
public java.lang.String readLine()
throws java.io.IOException
readLine in interface java.io.DataInputjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||