Package system.io
Class DirectoryInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.FileSystemInfo
-
- system.io.DirectoryInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class DirectoryInfo extends FileSystemInfo
The base .NET class managing System.IO.DirectoryInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.DirectoryInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.IO.DirectoryInfostatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DirectoryInfo()
DirectoryInfo(java.lang.Object instance)
Internal constructor.DirectoryInfo(java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectoryInfo
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoDirectoryInfo
, a cast assert is made to check if types are compatible.void
Create()
void
Create(DirectorySecurity directorySecurity)
DirectoryInfo
CreateSubdirectory(java.lang.String path)
DirectoryInfo
CreateSubdirectory(java.lang.String path, DirectorySecurity directorySecurity)
void
Delete()
void
Delete(boolean recursive)
DirectorySecurity
GetAccessControl()
DirectorySecurity
GetAccessControl(AccessControlSections includeSections)
DirectoryInfo[]
GetDirectories()
DirectoryInfo[]
GetDirectories(java.lang.String searchPattern)
DirectoryInfo[]
GetDirectories(java.lang.String searchPattern, SearchOption searchOption)
FileInfo[]
GetFiles()
FileInfo[]
GetFiles(java.lang.String searchPattern)
FileInfo[]
GetFiles(java.lang.String searchPattern, SearchOption searchOption)
FileSystemInfo[]
GetFileSystemInfos()
FileSystemInfo[]
GetFileSystemInfos(java.lang.String searchPattern)
FileSystemInfo[]
GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeDirectoryInfo
getParent()
DirectoryInfo
getRoot()
void
MoveTo(java.lang.String destDirName)
void
SetAccessControl(DirectorySecurity directorySecurity)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.io.FileSystemInfo
getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getName, GetObjectData, Refresh, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtc
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.DirectoryInfo- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectoryInfo
public DirectoryInfo(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
DirectoryInfo
public DirectoryInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
DirectoryInfo
public DirectoryInfo(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
ArgumentOutOfRangeException
IndexOutOfRangeException
NotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classFileSystemInfo
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classFileSystemInfo
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classFileSystemInfo
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classFileSystemInfo
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classFileSystemInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classFileSystemInfo
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DirectoryInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDirectoryInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DirectoryInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CreateSubdirectory
public DirectoryInfo CreateSubdirectory(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PathTooLongException, ArgumentOutOfRangeException, NotSupportedException, IOException, InvalidOperationException
-
CreateSubdirectory
public DirectoryInfo CreateSubdirectory(java.lang.String path, DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
PathTooLongException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
InvalidOperationException
NotSupportedException
-
GetDirectories
public DirectoryInfo[] GetDirectories() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFiles
public FileInfo[] GetFiles() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, NullReferenceException, CultureNotFoundException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
NullReferenceException
CultureNotFoundException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NotSupportedException
-
GetAccessControl
public DirectorySecurity GetAccessControl() throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, IndexOutOfRangeException, NotSupportedException
-
GetAccessControl
public DirectorySecurity GetAccessControl(AccessControlSections includeSections) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, IndexOutOfRangeException, NotSupportedException
-
Create
public void Create() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, IOException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
IOException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
-
Create
public void Create(DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, IOException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
IOException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
-
Delete
public void Delete() throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Overrides:
Delete
in classFileSystemInfo
- Throws:
java.lang.Throwable
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
Delete
public void Delete(boolean recursive) throws java.lang.Throwable, IndexOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
MoveTo
public void MoveTo(java.lang.String destDirName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, InvalidOperationException, IOException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotSupportedException
IndexOutOfRangeException
FormatException
ArgumentOutOfRangeException
InvalidOperationException
IOException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
DriveNotFoundException
OperationCanceledException
-
SetAccessControl
public void SetAccessControl(DirectorySecurity directorySecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException, OutOfMemoryException, PrivilegeNotHeldException, InvalidProgramException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
ArgumentOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
InvalidOperationException
NotSupportedException
OutOfMemoryException
PrivilegeNotHeldException
InvalidProgramException
-
getParent
public DirectoryInfo getParent() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, PathTooLongException, OutOfMemoryException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
PathTooLongException
OutOfMemoryException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
-
getRoot
public DirectoryInfo getRoot() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CultureNotFoundException, InvalidOperationException, NotSupportedException
-
-