Motorola maxx V6 manual Draft Subject to Change 38/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 38
Image 38

Java ME Developer Guide

Chapter 6 - JSR-75 - PIM and Fileconnection APIs

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.

DRAFT - Subject to Change [38/201]

Page 38
Image 38
Motorola maxx V6 manual Draft Subject to Change 38/201