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.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.IO.DirectoryInfo
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.FileSystemstatic 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
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
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.FileSystem- 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, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalException
-
-
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, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OutOfMemoryException, ExternalException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalException
-
GetDirectories
public DirectoryInfo[] GetDirectories() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, OutOfMemoryException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIndexOutOfRangeExceptionNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionRankException
-
GetDirectories
public DirectoryInfo[] GetDirectories(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
GetFiles
public FileInfo[] GetFiles() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, OutOfMemoryException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIndexOutOfRangeExceptionNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionRankException
-
GetFiles
public FileInfo[] GetFiles(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, EnumerationOptions enumerationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, OutOfMemoryException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern, SearchOption searchOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, IndexOutOfRangeException, NotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, RankException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionIndexOutOfRangeExceptionNotSupportedExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionRankException
-
GetFileSystemInfos
public FileSystemInfo[] GetFileSystemInfos(java.lang.String searchPattern) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
Create
public void Create() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, FormatException, ObjectDisposedException
-
Delete
public void Delete() throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, InvalidOperationException, FormatException, IOException, NotSupportedException- Overrides:
Deletein classFileSystemInfo- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionIOExceptionNotSupportedException
-
Delete
public void Delete(boolean recursive) throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, ObjectDisposedException, IOException, NotSupportedException
-
MoveTo
public void MoveTo(java.lang.String destDirName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, CultureNotFoundException, OutOfMemoryException, ExternalException, IOException, DirectoryNotFoundException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionCultureNotFoundExceptionOutOfMemoryExceptionExternalExceptionIOExceptionDirectoryNotFoundException
-
getParent
public DirectoryInfo getParent() throws java.lang.Throwable, NotSupportedException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, ArgumentException, CultureNotFoundException
-
getRoot
public DirectoryInfo getRoot() throws java.lang.Throwable, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException
-
-