Motorola E680 - Smartphone - GSM Developer's Manual page 69

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

16
File System Access API
}
/*
* Get file size
*/
try {
} catch (IOException ioe) {
}
/*
* Set file's attributes
*/
try {
} catch (IOException ioe) {
}
try {
} catch (IOException ioe) {
}
try {
} catch (IOException ioe) {
}
/*
* Get file's attributes
*/
try {
} catch (IOException ioe) {
}
try {
} catch (IOException ioe) {
}
try {
} catch (IOException ioe) {
}
/*
* Rename file
69
...
long fileSize = fc.fileSize();
...
boolean isSetToWrite = fc.setWriteable(true);
...
boolean isSetToRead = fc.setReadable(true);
...
boolean isSetHidden =fc.setHidden(true);
...
boolean isWriteable = fc.canWrite();
...
boolean isReadable =fc.canRead();
...
boolean isHidden =fc.isHidden();
...

Advertisement

Table of Contents
loading

Table of Contents