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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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: 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.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
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
getName()
void
GetObjectData(SerializationInfo info, StreamingContext context)
void
Refresh()
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)
-
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.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
-
Delete
public void Delete() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, SerializationException
-
Refresh
public void Refresh() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
getExists
public boolean getExists() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCreationTime
public DateTime getCreationTime() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidTimeZoneException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidTimeZoneException
-
setCreationTime
public void setCreationTime(DateTime CreationTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, IOException, InvalidOperationException, NotSupportedException, OverflowException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
IOException
InvalidOperationException
NotSupportedException
OverflowException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NullReferenceException
-
getCreationTimeUtc
public DateTime getCreationTimeUtc() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
setCreationTimeUtc
public void setCreationTimeUtc(DateTime CreationTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NotSupportedException, OverflowException, InvalidOperationException, NullReferenceException, SecurityException, IOException
-
getLastAccessTime
public DateTime getLastAccessTime() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidTimeZoneException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidTimeZoneException
-
setLastAccessTime
public void setLastAccessTime(DateTime LastAccessTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, IOException, InvalidOperationException, NotSupportedException, OverflowException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
IOException
InvalidOperationException
NotSupportedException
OverflowException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NullReferenceException
-
getLastAccessTimeUtc
public DateTime getLastAccessTimeUtc() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
setLastAccessTimeUtc
public void setLastAccessTimeUtc(DateTime LastAccessTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NotSupportedException, OverflowException, InvalidOperationException, NullReferenceException, SecurityException, IOException
-
getLastWriteTime
public DateTime getLastWriteTime() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidTimeZoneException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidTimeZoneException
-
setLastWriteTime
public void setLastWriteTime(DateTime LastWriteTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, IOException, InvalidOperationException, NotSupportedException, OverflowException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, DriveNotFoundException, OperationCanceledException, IndexOutOfRangeException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
SecurityException
IOException
InvalidOperationException
NotSupportedException
OverflowException
PathTooLongException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
NullReferenceException
-
getLastWriteTimeUtc
public DateTime getLastWriteTimeUtc() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
setLastWriteTimeUtc
public void setLastWriteTimeUtc(DateTime LastWriteTimeUtc) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NotSupportedException, OverflowException, InvalidOperationException, NullReferenceException, SecurityException, IOException
-
getAttributes
public FileAttributes getAttributes() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
ArgumentException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
setAttributes
public void setAttributes(FileAttributes Attributes) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
getExtension
public java.lang.String getExtension() throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
getFullName
public java.lang.String getFullName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException
-
getName
public java.lang.String getName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-