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.

See Also:
FileConnection
Since:
BlackBerry API 4.2.0, FileConnection 1.0

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, String rootName)
          This method is invoked when a root on the device has changed state.
 



Field Detail

ROOT_ADDED

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

See Also:
Constant Field Values
Since:
BlackBerry API 4.2.0

ROOT_REMOVED

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

See Also:
Constant Field Values
Since:
BlackBerry API 4.2.0


Method Detail

rootChanged

void rootChanged(int state,
                 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:
IllegalArgumentException - if state has a negative value or is not one of the legal acceptable constants.
NullPointerException - if rootName is null.
See Also:
FileConnection
Since:
BlackBerry API 4.2.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.