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, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..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.StringassemblyFullNameFully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.IO.DirectoryInfostatic JCTypeclassTypeThe 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 DirectoryInfocast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoDirectoryInfo, a cast assert is made to check if types are compatible.voidCreate()DirectoryInfoCreateSubdirectory(java.lang.String path)voidDelete()voidDelete(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.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeDirectoryInfogetParent()DirectoryInfogetRoot()voidMoveTo(java.lang.String destDirName)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.io.FileSystemInfo
CreateAsSymbolicLink, getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getLinkTarget, getName, GetObjectData, getUnixFileMode, Refresh, ResolveLinkTarget, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtc, setUnixFileMode
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- 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.ThrowableInternal 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, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classFileSystemInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classFileSystemInfo- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classFileSystemInfo- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classFileSystemInfo- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classFileSystemInfo
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classFileSystemInfo- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DirectoryInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDirectoryInfo, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DirectoryInfoinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CreateSubdirectory
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
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFormatException
-
GetDirectories
public DirectoryInfo[] GetDirectories() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
GetFiles
public FileInfo[] GetFiles() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, CultureNotFoundException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, RankException, ArrayTypeMismatchException
-
Create
public void Create() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, RankException, ArrayTypeMismatchException, FormatException
-
Delete
public void Delete() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, FormatException, IOException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException- Overrides:
Deletein classFileSystemInfo- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
Delete
public void Delete(boolean recursive) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, FormatException, IOException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionFormatExceptionIOExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
MoveTo
public void MoveTo(java.lang.String destDirName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, IOException
-
getParent
public DirectoryInfo getParent() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, ArgumentException, CultureNotFoundException
-
getRoot
public DirectoryInfo getRoot() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, FormatException, CultureNotFoundException
-
-