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=9.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.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.IO.FileSystemInfostatic JCType
classType
The 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 FileSystemInfo
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFileSystemInfo
, a cast assert is made to check if types are compatible.void
CreateAsSymbolicLink(java.lang.String pathToTarget)
void
Delete()
FileAttributes
getAttributes()
DateTime
getCreationTime()
DateTime
getCreationTimeUtc()
boolean
getExists()
java.lang.String
getExtension()
java.lang.String
getFullName()
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 TypeDateTime
getLastAccessTime()
DateTime
getLastAccessTimeUtc()
DateTime
getLastWriteTime()
DateTime
getLastWriteTimeUtc()
java.lang.String
getLinkTarget()
java.lang.String
getName()
void
GetObjectData(SerializationInfo info, StreamingContext context)
UnixFileMode
getUnixFileMode()
void
Refresh()
FileSystemInfo
ResolveLinkTarget(boolean returnFinalTarget)
void
setAttributes(FileAttributes Attributes)
void
setCreationTime(DateTime CreationTime)
void
setCreationTimeUtc(DateTime CreationTimeUtc)
void
setJCOInstance(JCObject instance)
void
setLastAccessTime(DateTime LastAccessTime)
void
setLastAccessTimeUtc(DateTime LastAccessTimeUtc)
void
setLastWriteTime(DateTime LastWriteTime)
void
setLastWriteTimeUtc(DateTime LastWriteTimeUtc)
void
setUnixFileMode(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=9.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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMarshalByRefObject
- 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 classMarshalByRefObject
- 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 classMarshalByRefObject
- 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 classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static FileSystemInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoFileSystemInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
FileSystemInfo
instance- 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, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
ArgumentException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
MissingMethodException
TargetInvocationException
FormatException
InvalidOperationException
NotSupportedException
-
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, ArgumentNullException, ArgumentException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException
-
getExists
public boolean getExists() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCreationTime
public DateTime getCreationTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
-
setCreationTime
public void setCreationTime(DateTime CreationTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
-
getCreationTimeUtc
public DateTime getCreationTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
-
setCreationTimeUtc
public void setCreationTimeUtc(DateTime CreationTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentNullException
IndexOutOfRangeException
OverflowException
MissingMethodException
TargetInvocationException
ObjectDisposedException
-
getLastAccessTime
public DateTime getLastAccessTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
-
setLastAccessTime
public void setLastAccessTime(DateTime LastAccessTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
-
getLastAccessTimeUtc
public DateTime getLastAccessTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
-
setLastAccessTimeUtc
public void setLastAccessTimeUtc(DateTime LastAccessTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentNullException
IndexOutOfRangeException
OverflowException
MissingMethodException
TargetInvocationException
ObjectDisposedException
-
getLastWriteTime
public DateTime getLastWriteTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
-
setLastWriteTime
public void setLastWriteTime(DateTime LastWriteTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
-
getLastWriteTimeUtc
public DateTime getLastWriteTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
-
setLastWriteTimeUtc
public void setLastWriteTimeUtc(DateTime LastWriteTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArgumentNullException
IndexOutOfRangeException
OverflowException
MissingMethodException
TargetInvocationException
ObjectDisposedException
-
getAttributes
public FileAttributes getAttributes() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, InvalidOperationException, FormatException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
CultureNotFoundException
OutOfMemoryException
MissingMethodException
TargetInvocationException
ArrayTypeMismatchException
InvalidOperationException
FormatException
-
setAttributes
public void setAttributes(FileAttributes Attributes) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NotSupportedException, 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, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException
-
getName
public java.lang.String getName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-