|
J2ME CDC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Metadata connection
| Method Summary | |
boolean |
canRead()
Test to see if the selected item can be read |
boolean |
canWrite()
Test to see if the selected item can be written |
void |
create()
Create a data item in the collection with a randomly chosen unique name and select it |
void |
create(int i)
Create an item with the supplied number |
void |
create(String name)
Create a data item with the supplied name and select it |
void |
createDirectory(String name)
Create a directory with the supplied name |
void |
delete()
Delete the current data item from the collection |
void |
deleteDirectory()
Delete a directory |
void |
deselectItem()
Unselect the current item. |
long |
getAvailableSpace()
Return the size in bytes that the collection can grow to |
int |
getItemCount()
Return the number of items in the collection |
String |
getItemName()
Return the number of the current record |
int |
getItemNumber()
Return the number of the current item |
long |
getModificationDate()
Return the date that the item was last modified |
boolean |
isDirectory()
Test to see if the current item is a directory |
void |
rename(String newName)
Rename the current data item |
void |
renameDirectory(String to)
Rename a directory with the supplied name |
boolean |
selectFirstItem()
Select the first record int the database |
boolean |
selectItem(int i)
Select an item in the collection |
boolean |
selectItem(String name)
Select an item in the collection |
boolean |
selectNextItem()
Select the next record int the database |
void |
setReadable(boolean tf)
Set or clear the read bit |
void |
setWritable(boolean tf)
Set or clear the write bit |
| Methods inherited from interface javax.microedition.io.RandomAccessConnection |
getLength, getPosition, isSelected, read, read, seek, setLength, write, write |
| Methods inherited from interface javax.microedition.io.InputConnection |
openDataInputStream, openInputStream |
| Methods inherited from interface javax.microedition.io.Connection |
close |
| Methods inherited from interface javax.microedition.io.OutputConnection |
openDataOutputStream, openOutputStream |
| Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes |
| Methods inherited from interface java.io.DataOutput |
write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Method Detail |
public long getAvailableSpace()
throws IOException
public int getItemCount()
throws IOException
public boolean selectFirstItem()
throws IOException
IOException - if an I/O error occurs.
public boolean selectNextItem()
throws IOException
IOException - if an I/O error occurs.
public boolean selectItem(String name)
throws IOException
name - the name of the item to selectIOException - if an I/O error occurs.
public boolean selectItem(int i)
throws IOException
i - the record numberIOException - if an I/O error occurs.
public void deselectItem()
throws IOException
IOException - if an I/O error occurs.
public boolean isDirectory()
throws IOException
public void create()
throws IOException
IOException - if an I/O error occurs.
public void create(String name)
throws IOException
name - the name of the item to createIOException - if an I/O error occurs.
public void create(int i)
throws IOException
i - the record numberIOException - if an I/O error occurs.
public void createDirectory(String name)
throws IOException
name - the name of the directory to createIOException - if an I/O error occurs.
public void delete()
throws IOException
IOException - if an I/O error occurs.
public void deleteDirectory()
throws IOException
IOException - if an I/O error occurs.
public void rename(String newName)
throws IOException
name - the new name for the itemIOException - if an I/O error occurs.
public void renameDirectory(String to)
throws IOException
to - the new name for the directoryIOException - if an I/O error occurs.
public String getItemName()
throws IOException
IOException - if an I/O error occurs.
public int getItemNumber()
throws IOException
IOException - if an I/O error occurs.
public long getModificationDate()
throws IOException
IOException - if an I/O error occurs.
public boolean canRead()
throws IOException
IOException - if an I/O error occurs.
public void setReadable(boolean tf)
throws IOException
tf - the new value for the read bitIOException - if an I/O error occurs.
public boolean canWrite()
throws IOException
IOException - if an I/O error occurs.
public void setWritable(boolean tf)
throws IOException
tf - the new value for the write bitIOException - if an I/O error occurs.
|
J2ME CDC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||