PDAP Public Review Draft

javax.microedition.io
Interface FileSystemEvent


public interface FileSystemEvent

Represents an event occurring for a file system. This can be used to detect when a file system is added and removed on a device.

Since:
PDAP 1.0

Field Summary
static int ROOT_ADDED
          represents an event in which a file system root has been dynamically added to the device, typically through a mount or a card insertion.
static int ROOT_REMOVED
          represents an event in which a file system root has been dynamically removed from the device, typically through an unmount or a card removal.
 
Method Summary
 int getID()
          Gets the id of the event.
 java.lang.String getRootName()
          Gets the root name of the file system the event is fired for.
 

Field Detail

ROOT_ADDED

public static final int ROOT_ADDED
represents an event in which a file system root has been dynamically added to the device, typically through a mount or a card insertion.

Value 0 is assigned to ROOT_ADDED.


ROOT_REMOVED

public static final int ROOT_REMOVED
represents an event in which a file system root has been dynamically removed from the device, typically through an unmount or a card removal.

Value 1 is assigned to ROOT_REMOVED.

Method Detail

getRootName

public java.lang.String getRootName()
Gets the root name of the file system the event is fired for.
Returns:
String representing the root name of the file system. This string does not contain the file:// tag used in Connector.open() parameters.

getID

public int getID()
Gets the id of the event.
Returns:
int the id of the event.

PDAP 1.0 Spec, Rev. 0.16