FileSystemListener (FileConnection Optional Package 1.0 Spec, Final Release)
FileConnection Optional Package 1.0
Final Release

javax.microedition.io.file
Interface FileSystemListener


public interface FileSystemListener

This class is used for receiving status notification when adding or removing a file system root. This can be achieved by inserting or removing a card from a device or by mounting or unmounting file systems to a device.

Since:
FileConnection 1.0
See Also:
FileConnection

Field Summary
static int ROOT_ADDED
          Constant indicating that a file system root has been added to the device.
static int ROOT_REMOVED
          Constant indicating that a file system root has been removed from the device.
 
Method Summary
 void rootChanged(int state, java.lang.String rootName)
          This method is invoked when a root on the device has changed state.
 

Field Detail

ROOT_ADDED

public static final int ROOT_ADDED
Constant indicating that a file system root has been added to the device.

See Also:
Constant Field Values

ROOT_REMOVED

public static final int ROOT_REMOVED
Constant indicating that a file system root has been removed from the device.

See Also:
Constant Field Values
Method Detail

rootChanged

public void rootChanged(int state,
                        java.lang.String rootName)
This method is invoked when a root on the device has changed state.

Parameters:
state - int representing the state change that has happened to the root.
rootName - the String name of the root, following the root naming conventions detailed in FileConnection.
Throws:
java.lang.IllegalArgumentException - if state has a negative value or is not one of the legal acceptable constants.
java.lang.NullPointerException - if rootName is null.
See Also:
FileConnection

Final Release
Rev. 1.00

Copyright © 2002-2004 PalmSource, Inc. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.