|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.sfc.Win32.Drive
public final class Drive
Used to access drive information and set drive volume label.
| Constructor Summary | |
|---|---|
Drive(java.lang.String drive)
Constructs a new Drive object for the specified drive. |
|
Drive(java.lang.String drive,
boolean check_drive)
Constructs a new Drive object for the specified drive. |
|
| Method Summary | |
|---|---|
int |
getBytesPerSector()
Returns the number of bytes per sector. |
int |
getFileSystemFlags()
Returns the file FileSystemFlag. |
java.lang.String |
getFileSystemName()
Returns the file system's name. |
int |
getMaximumPathComponentLength()
Returns the maximum path component length. |
int |
getNumberOfFreeClusters()
Returns the number of free clusters. |
int |
getSectorsPerCluster()
Returns the number of sectors per cluster. |
long |
getTotalNumberOfBytes()
Returns the total number of bytes. |
int |
getTotalNumberOfClusters()
Returns the number of clusters. |
long |
getTotalNumberOfFreeBytes()
Returns the total number of free bytes. |
int |
getType()
Returns the drive type. |
java.lang.String |
getVolumeLabel()
Returns the volume label. |
int |
getVolumeSerialNumber()
Returns the volume's serial number. |
void |
setVolumeLabel(java.lang.String label)
Sets the volume label. |
java.lang.String |
toString()
Returns the drive specifier. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Drive(java.lang.String drive)
throws Win32Exception
drive - the drive specifier.
Win32Exception - if the drive does not exist or is not accessible or if any error occurs.
public Drive(java.lang.String drive,
boolean check_drive)
throws Win32Exception
drive - the drive specifier.check_drive - whether to check if the drive exist or is accessible.
Win32Exception - if the drive does not exist or is not accessible or if any error occurs.| Method Detail |
|---|
public final int getType()
DriveType
public final int getSectorsPerCluster()
throws Win32Exception
Win32Exception - if any error occurs.
public final int getBytesPerSector()
throws Win32Exception
Win32Exception - if any error occurs.
public final int getNumberOfFreeClusters()
throws Win32Exception
Win32Exception - if any error occurs.
public final int getTotalNumberOfClusters()
throws Win32Exception
Win32Exception - if any error occurs.
public final long getTotalNumberOfBytes()
throws Win32Exception
Win32Exception - if any error occurs.
public final long getTotalNumberOfFreeBytes()
throws Win32Exception
Win32Exception - if any error occurs.
public final java.lang.String getVolumeLabel()
throws Win32Exception
Win32Exception - if any error occurs.
public final void setVolumeLabel(java.lang.String label)
throws Win32Exception
label - the volume label. null to remove the volume label.
Win32Exception - if any error occurs.public final java.lang.String toString()
toString in class java.lang.Object
public final int getVolumeSerialNumber()
throws Win32Exception
Win32Exception - if any error occurs.
public final int getMaximumPathComponentLength()
throws Win32Exception
Win32Exception - if any error occurs.
public final int getFileSystemFlags()
throws Win32Exception
Win32Exception - if any error occurs.
public final java.lang.String getFileSystemName()
throws Win32Exception
Win32Exception - if any error occurs.
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.