Feature description

The File API enables third party developers to create Java applications that can use File Server services such as opening and writing files. The S60 Second Edition FP 2 and later and Series 40 2nd Edition and later platforms include an implementation of FileConnection Optional Package 1.0 as defined in Optional Packages for the J2ME Platform (JSR-75 specification).

Supported features

The Java Platform for both S60 and Series 40 provides the following File API interfaces/features:

  • FileConnection interface for accessing files or directories located on file systems on a device or removable media. Device internal file systems in RAM or ROM may also be accessed through this class in case the accessing MIDlet belongs to the Manufacturer domain.

  • FileSystemListener interface for receiving status notification when adding or removing a file system root.

  • FileSystemRegistry class for file system listeners interested in the adding and removing (or mounting and unmounting) of file systems on a device.

The Java Platform for S60 provides the following File API interfaces/features:

  • Support for accessing DRM protected files. For more information on this feature, see section DRM support