public class DirectoryInfo extends FileSystemInfo
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.DirectoryInfo
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: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.IO.DirectoryInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DirectoryInfo() |
DirectoryInfo(java.lang.Object instance)
Internal constructor.
|
DirectoryInfo(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
static DirectoryInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DirectoryInfo, a cast assert is made to check if types are compatible. |
void |
Create() |
DirectoryInfo |
CreateSubdirectory(java.lang.String path) |
void |
Delete() |
void |
Delete(boolean recursive) |
DirectoryInfo[] |
GetDirectories() |
DirectoryInfo[] |
GetDirectories(java.lang.String searchPattern) |
DirectoryInfo[] |
GetDirectories(java.lang.String searchPattern,
EnumerationOptions enumerationOptions) |
DirectoryInfo[] |
GetDirectories(java.lang.String searchPattern,
SearchOption searchOption) |
FileInfo[] |
GetFiles() |
FileInfo[] |
GetFiles(java.lang.String searchPattern) |
FileInfo[] |
GetFiles(java.lang.String searchPattern,
EnumerationOptions enumerationOptions) |
FileInfo[] |
GetFiles(java.lang.String searchPattern,
SearchOption searchOption) |
FileSystemInfo[] |
GetFileSystemInfos() |
FileSystemInfo[] |
GetFileSystemInfos(java.lang.String searchPattern) |
FileSystemInfo[] |
GetFileSystemInfos(java.lang.String searchPattern,
EnumerationOptions enumerationOptions) |
FileSystemInfo[] |
GetFileSystemInfos(java.lang.String searchPattern,
SearchOption searchOption) |
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
|
DirectoryInfo |
getParent() |
DirectoryInfo |
getRoot() |
void |
MoveTo(java.lang.String destDirName) |
void |
setJCOInstance(JCObject instance) |
CreateAsSymbolicLink, getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getLinkTarget, getName, GetObjectData, getUnixFileMode, Refresh, ResolveLinkTarget, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtc, setUnixFileModeGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DirectoryInfo()
throws java.lang.Throwable
java.lang.Throwablepublic DirectoryInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic DirectoryInfo(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionpublic static DirectoryInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DirectoryInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDirectoryInfo instancejava.lang.Throwable - in case of error during cast operationpublic void Create()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
RankException,
ArrayTypeMismatchException,
FormatException
public DirectoryInfo CreateSubdirectory(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionpublic void Delete()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
ArgumentOutOfRangeException,
InvalidOperationException,
OutOfMemoryException,
FormatException,
IOException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException
Delete in class FileSystemInfojava.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionpublic void Delete(boolean recursive)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
ArgumentOutOfRangeException,
InvalidOperationException,
OutOfMemoryException,
FormatException,
IOException,
NotSupportedException,
MethodAccessException,
MissingMethodException,
MemberAccessException,
TargetInvocationException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionpublic DirectoryInfo[] GetDirectories() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
public FileInfo[] GetFiles() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public FileInfo[] GetFiles(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public FileInfo[] GetFiles(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
public FileInfo[] GetFiles(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
public FileSystemInfo[] GetFileSystemInfos() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class FileSystemInfoString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class FileSystemInfoString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class FileSystemInfoObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class FileSystemInfoString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class FileSystemInfoJCType representing the CLR Type of the instantiated Classpublic DirectoryInfo getParent() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, ArgumentException, CultureNotFoundException
public DirectoryInfo getRoot() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, FormatException, CultureNotFoundException
public void MoveTo(java.lang.String destDirName)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException,
IOException
public void setJCOInstance(JCObject instance)
setJCOInstance in class FileSystemInfo