Package system.io
Class FileSystemInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.FileSystemInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
DirectoryInfo,FileInfo
public class FileSystemInfo extends MarshalByRefObject
The base .NET class managing System.IO.FileSystemInfo, 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.FileSystemInfo
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.FileSystemInfostatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description FileSystemInfo()FileSystemInfo(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSystemInfocast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFileSystemInfo, a cast assert is made to check if types are compatible.voidCreateAsSymbolicLink(java.lang.String pathToTarget)voidDelete()FileAttributesgetAttributes()DateTimegetCreationTime()DateTimegetCreationTimeUtc()booleangetExists()java.lang.StringgetExtension()java.lang.StringgetFullName()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 TypeDateTimegetLastAccessTime()DateTimegetLastAccessTimeUtc()DateTimegetLastWriteTime()DateTimegetLastWriteTimeUtc()java.lang.StringgetLinkTarget()java.lang.StringgetName()voidGetObjectData(SerializationInfo info, StreamingContext context)UnixFileModegetUnixFileMode()voidRefresh()FileSystemInfoResolveLinkTarget(boolean returnFinalTarget)voidsetAttributes(FileAttributes Attributes)voidsetCreationTime(DateTime CreationTime)voidsetCreationTimeUtc(DateTime CreationTimeUtc)voidsetJCOInstance(JCObject instance)voidsetLastAccessTime(DateTime LastAccessTime)voidsetLastAccessTimeUtc(DateTime LastAccessTimeUtc)voidsetLastWriteTime(DateTime LastWriteTime)voidsetLastWriteTimeUtc(DateTime LastWriteTimeUtc)voidsetUnixFileMode(UnixFileMode UnixFileMode)-
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.FileSystemInfo- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- 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 classMarshalByRefObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classMarshalByRefObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static FileSystemInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFileSystemInfo, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
FileSystemInfoinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
ResolveLinkTarget
public FileSystemInfo ResolveLinkTarget(boolean returnFinalTarget) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionFormatException
-
CreateAsSymbolicLink
public void CreateAsSymbolicLink(java.lang.String pathToTarget) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException
-
Delete
public void Delete() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Refresh
public void Refresh() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionOutOfMemoryExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationException
-
getExists
public boolean getExists() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCreationTime
public DateTime getCreationTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException
-
setCreationTime
public void setCreationTime(DateTime CreationTime) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, OverflowException, OutOfMemoryException
-
getCreationTimeUtc
public DateTime getCreationTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, NotSupportedException
-
setCreationTimeUtc
public void setCreationTimeUtc(DateTime CreationTimeUtc) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionOverflowExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedException
-
getLastAccessTime
public DateTime getLastAccessTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException
-
setLastAccessTime
public void setLastAccessTime(DateTime LastAccessTime) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, OverflowException, OutOfMemoryException
-
getLastAccessTimeUtc
public DateTime getLastAccessTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, NotSupportedException
-
setLastAccessTimeUtc
public void setLastAccessTimeUtc(DateTime LastAccessTimeUtc) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionOverflowExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedException
-
getLastWriteTime
public DateTime getLastWriteTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException
-
setLastWriteTime
public void setLastWriteTime(DateTime LastWriteTime) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, UnauthorizedAccessException, IOException, OverflowException, OutOfMemoryException
-
getLastWriteTimeUtc
public DateTime getLastWriteTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, NotSupportedException
-
setLastWriteTimeUtc
public void setLastWriteTimeUtc(DateTime LastWriteTimeUtc) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionOverflowExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedException
-
getAttributes
public FileAttributes getAttributes() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ArrayTypeMismatchException, FormatException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionOutOfMemoryExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionArrayTypeMismatchExceptionFormatException
-
setAttributes
public void setAttributes(FileAttributes Attributes) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, FormatException, OutOfMemoryException
-
getUnixFileMode
public UnixFileMode getUnixFileMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUnixFileMode
public void setUnixFileMode(UnixFileMode UnixFileMode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getExtension
public java.lang.String getExtension() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
getFullName
public java.lang.String getFullName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getLinkTarget
public java.lang.String getLinkTarget() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionOutOfMemoryExceptionNotSupportedExceptionMethodAccessExceptionMissingMethodExceptionMemberAccessExceptionTargetInvocationExceptionFormatException
-
getName
public java.lang.String getName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-