|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.update.configuration.LocalSystemInfo
Utility class providing local file system information. The class attempts to load a native library implementation of its methods. If successful, the method calls are delegated to the native implementation. Otherwise a default non-native implementation is used. *
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
static long | SIZE_UNKNOWN
Indicates the amount of available free space is not known |
static int | VOLUME_ADDED
Indicates a new volume has been added |
static int | VOLUME_CDROM
Indicates a cdrom volume (compact disc) |
static int | VOLUME_CHANGED
Indicates a volume has been changed |
static int | VOLUME_FIXED
Indicates the volume is fixed (hard drive) |
static int | VOLUME_FLOPPY_3
Indicates the volume is removable (floppy disk 3 1/2) |
static int | VOLUME_FLOPPY_5
Indicates the volume is removable (floppy disk 5 1/4) |
static int | VOLUME_INVALID_PATH
Indicates the volume could not be determined from path |
static int | VOLUME_RAMDISK
Indicates a ramdisk volume (memory) |
static int | VOLUME_REMOTE
Indicates a remote (network) volume |
static int | VOLUME_REMOVABLE
Indicates the volume is removable (other than floppy disk) |
static int | VOLUME_REMOVED
Indicates a volume has been removed |
static int | VOLUME_UNKNOWN
Indicates the volume type is not known |
Constructor Summary | |
LocalSystemInfo()
|
Method Summary | |
static void | addInfoListener(ILocalSystemInfoListener listener)
Add local system change listener. |
static void | fireSystemInfoChanged(IVolume volume,
int changeType)
Notify listeners of change. |
static long | getFreeSpace(File path)
Determines available free space on a volume. |
static IVolume[] | getVolumes()
Lists the file system volume. |
static void | removeInfoListener(ILocalSystemInfoListener listener)
Remove local system change listener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long SIZE_UNKNOWN
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_UNKNOWN
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_INVALID_PATH
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_REMOVABLE
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_FIXED
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_REMOTE
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_CDROM
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_RAMDISK
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_FLOPPY_5
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_FLOPPY_3
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_ADDED
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_REMOVED
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static final int VOLUME_CHANGED
Note: This field is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Detail |
public LocalSystemInfo()
Method Detail |
public static long getFreeSpace(File path)
Note: This method is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static IVolume[] getVolumes()
Note: This method is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static void addInfoListener(ILocalSystemInfoListener listener)
Note: This method is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static void removeInfoListener(ILocalSystemInfoListener listener)
Note: This method is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
public static void fireSystemInfoChanged(IVolume volume, int changeType)
Note: This method is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.