Methods Summary |
---|
public void | close()Disconnect from recordStream if it is
non null. May be called more than once without error.
|
public void | commitWrite()Commit pending writes
|
public int | read(byte[] buf)Read up to buf.length into buf .
|
public int | read(byte[] buf, int offset, int numBytes)Read up to buf.length into buf
starting at offset offset in recordStream
and continuing for up to numBytes bytes.
|
public void | seek(int pos)Sets the position within recordStream to
pos . This will implicitly grow
the underlying stream if pos is made greater
than the current length of the storage stream.
|
public int | spaceAvailable(int suiteId)Approximation of remaining space in storage.
Usage Warning: This may be a slow operation if
the platform has to look at the size of each file
stored in the MIDP memory space and include its size
in the total.
|
public void | truncate(int size)Sets the length of this RecordStoreFile
size bytes. If this file was previously
larger than size the extra data is lost.
size must be <= the current length of
recordStream
|
public void | write(byte[] buf)Write all of buf to recordStream .
|
public void | write(byte[] buf, int offset, int numBytes)Write buf to recordStream , starting
at offset and continuing for numBytes
bytes.
|