|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsmooth.DriveInfo
public class DriveInfo
Field Summary | |
---|---|
static int |
DRIVE_CDROM
|
static int |
DRIVE_FIXED
|
static int |
DRIVE_NO_ROOT_DIR
|
static int |
DRIVE_RAMDISK
|
static int |
DRIVE_REMOTE
|
static int |
DRIVE_REMOVABLE
|
static int |
DRIVE_UNKNOWN
|
static int |
FILE_CASE_PRESERVED_NAMES
|
static int |
FILE_CASE_SENSITIVE_SEARCH
|
static int |
FILE_FILE_COMPRESSION
|
static int |
FILE_NAMED_STREAMS
|
static int |
FILE_PERSISTENT_ACLS
|
static int |
FILE_READ_ONLY_VOLUME
|
static int |
FILE_SUPPORTS_ENCRYPTION
|
static int |
FILE_SUPPORTS_OBJECT_IDS
|
static int |
FILE_SUPPORTS_REMOTE_STORAGE
|
static int |
FILE_SUPPORTS_REPARSE_POINTS
|
static int |
FILE_SUPPORTS_SPARSE_FILES
|
static int |
FILE_UNICODE_ON_DISK
|
static int |
FILE_VOLUME_IS_COMPRESSED
|
static int |
FILE_VOLUME_QUOTAS
|
Constructor Summary | |
---|---|
DriveInfo()
|
Method Summary | |
---|---|
int |
getDriveType()
Return the drive type as one of the DRIVE_* constants. |
java.lang.String |
getFileSystemName()
The name of the filesystem installed on this drive |
long |
getFreeSpace()
Return the total free space of the volume in bytes |
long |
getFreeSpaceForUser()
Return the free space of the volume available to the user. |
int |
getMaximumComponentSize()
The maximum size supported by the file system for a single component (directory or filename). |
int |
getSerialNumber()
Return the serial number of the volume, as allocated by the system during the formatting of the volume. |
int |
getSystemFlags()
Return a combination of system flags supported by the filesystem. |
long |
getTotalSpace()
Return the total space of the volume, including the free and allocated space. |
java.lang.String |
getVolumeName()
If a name has been defined for the volume represented by this object, it is returned. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DRIVE_REMOVABLE
public static final int DRIVE_FIXED
public static final int DRIVE_REMOTE
public static final int DRIVE_CDROM
public static final int DRIVE_RAMDISK
public static final int DRIVE_UNKNOWN
public static final int DRIVE_NO_ROOT_DIR
public static final int FILE_CASE_SENSITIVE_SEARCH
public static final int FILE_CASE_PRESERVED_NAMES
public static final int FILE_UNICODE_ON_DISK
public static final int FILE_PERSISTENT_ACLS
public static final int FILE_FILE_COMPRESSION
public static final int FILE_VOLUME_QUOTAS
public static final int FILE_SUPPORTS_SPARSE_FILES
public static final int FILE_SUPPORTS_REPARSE_POINTS
public static final int FILE_SUPPORTS_REMOTE_STORAGE
public static final int FILE_VOLUME_IS_COMPRESSED
public static final int FILE_SUPPORTS_OBJECT_IDS
public static final int FILE_SUPPORTS_ENCRYPTION
public static final int FILE_NAMED_STREAMS
public static final int FILE_READ_ONLY_VOLUME
Constructor Detail |
---|
public DriveInfo()
Method Detail |
---|
public int getDriveType()
public long getFreeSpace()
public long getFreeSpaceForUser()
public long getTotalSpace()
public int getSerialNumber()
public int getMaximumComponentSize()
public int getSystemFlags()
public java.lang.String getVolumeName()
public java.lang.String getFileSystemName()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |