Motorola E680 Technical Manual - Page 65
File System Access API
View all Motorola E680 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
16 File System Access API 16 File System Access API The File System Access API for the Motorola E680 handset is intended to allow J2ME applications access to files that are stored on the handsets. Internal file systems can be accessed via the File System Access API. Please note that the maximum file name length supported by Motorola is 36 characters. File Connection Methods The File System Access API will provide file connections provided there is underlying hardware and OS support on the handset. If file connections are not supported, attempts to open a file connection through Connector.open() will throw javax.micdoedition.io.ConnectionNotFoundException. Establishing a Connection To establish a connection, the format of the Connector.open() input string used to access a File Connection will follow the format described in the file URL format as part of IETF RFCs 1738 and 2386. These IETF RFCs dictate that a file URL will take the following form: • file:/// In the format shown above, the following definitions will be used: • - fully qualified domain name of the system on which the is accessible • - a hierarchical directory path of the form ///...// For successful implementation, will be the empty string. This is read as the machine from which the URL is being interpreted. This type of file connection only supports file access to files contained on a device or one of its attached memory cards. This type of file connections does not support access to files on a remote file system. Attempts to open a remote file system connection with Connector.open() will throw a javax.microedition.io.IOException. 65