The following
javax.microedition.io.Connector
methods should check for the "read
permission":
open("file:///...");
open("file:///...", Connector.READ);
open("file:///...", Connector.READ_WRITE);
openDataInputStream();
openInputStream()
The following
javax.microedition.io.file.FileConnection
methods should check for the
"read permission":
•
setFileConnection
, when instance opened with READ;
•
setFileConnection
, when instance opened with READ_WRITE.
The following
javax.microedition.io.Connector
methods should check for the "write
permission":
open("file:///...");
open("file:///...", Connector.WRITE);
open("file:///...", Connector.READ_WRITE);
openDataOutputStream();
openOutputStream();
openOutputStream(long byteOffset)
The following
javax.microedition.io.file.FileConnection
methods should check for the
"write permission":
•
setFileConnection
, when instance opened with WRITE;
•
setFileConnection
, when instance opened with READ_WRITE.
The bottom line prompt in the permission request dialog should include the name of
the file or directory only for those protected API calls that have this information spe-
cified as a parameter.
The prompt prefix should be "<File Location>/<File Name>" for the following
methods:
open; openDataInputStream;
openInputStream;
openDataOutputStream;
openOutputStream.
Java ME Developer Guide
Chapter 6 - JSR-75 - PIM and Fileconnection APIs
[38/201]
DRAFT - Subject to Change