public class DriveInfo extends NetObject implements ISerializable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.DriveInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.DriveInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DriveInfo() |
DriveInfo(java.lang.Object instance)
Internal constructor.
|
DriveInfo(java.lang.String driveName) |
| Modifier and Type | Method and Description |
|---|---|
static DriveInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DriveInfo, a cast assert is made to check if types are compatible. |
long |
getAvailableFreeSpace() |
java.lang.String |
getDriveFormat() |
static DriveInfo[] |
GetDrives() |
DriveType |
getDriveType() |
boolean |
getIsReady() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getName() |
DirectoryInfo |
getRootDirectory() |
long |
getTotalFreeSpace() |
long |
getTotalSize() |
java.lang.String |
getVolumeLabel() |
void |
setJCOInstance(JCObject instance) |
void |
setVolumeLabel(java.lang.String VolumeLabel) |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DriveInfo()
throws java.lang.Throwable
java.lang.Throwablepublic DriveInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DriveInfo(java.lang.String driveName)
throws java.lang.Throwable,
ArgumentNullException,
IndexOutOfRangeException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
CultureNotFoundException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException
java.lang.ThrowableArgumentNullExceptionIndexOutOfRangeExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionpublic static DriveInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DriveInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDriveInfo instancejava.lang.Throwable - in case of error during cast operationpublic long getAvailableFreeSpace()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
FormatException,
DriveNotFoundException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionFormatExceptionDriveNotFoundExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionOperationCanceledExceptionpublic java.lang.String getDriveFormat()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
DriveNotFoundException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionDriveNotFoundExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionOperationCanceledExceptionpublic static DriveInfo[] GetDrives() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionpublic DriveType getDriveType() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsReady()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwablepublic DirectoryInfo getRootDirectory() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, IndexOutOfRangeException
public long getTotalFreeSpace()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
FormatException,
DriveNotFoundException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionFormatExceptionDriveNotFoundExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionOperationCanceledExceptionpublic long getTotalSize()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentException,
FormatException,
DriveNotFoundException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentExceptionFormatExceptionDriveNotFoundExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionOperationCanceledExceptionpublic java.lang.String getVolumeLabel()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
InvalidOperationException,
DriveNotFoundException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidOperationExceptionDriveNotFoundExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionOperationCanceledExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setVolumeLabel(java.lang.String VolumeLabel)
throws java.lang.Throwable,
IndexOutOfRangeException,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ArgumentOutOfRangeException,
FormatException,
NotSupportedException,
NullReferenceException,
UnauthorizedAccessException,
DriveNotFoundException,
FileNotFoundException,
DirectoryNotFoundException,
IOException,
PathTooLongException,
OperationCanceledException
java.lang.ThrowableIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionNullReferenceExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionFileNotFoundExceptionDirectoryNotFoundExceptionIOExceptionPathTooLongExceptionOperationCanceledException