Package system.io
Class FileInfo
- java.lang.Object
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class FileInfo extends FileSystemInfo
The base .NET class managing System.IO.FileInfo, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileInfo
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=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.StringassemblyShortNameAssembly name: System.Private.CoreLibstatic java.lang.StringclassNameQualified class name: System.IO.FileInfostatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamWriterAppendText()static FileInfocast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFileInfo, a cast assert is made to check if types are compatible.FileInfoCopyTo(java.lang.String destFileName)FileInfoCopyTo(java.lang.String destFileName, boolean overwrite)FileStreamCreate()StreamWriterCreateText()voidDecrypt()voidDelete()voidEncrypt()DirectoryInfogetDirectory()java.lang.StringgetDirectoryName()booleangetIsReadOnly()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 objectorg.mases.jcobridge.JCTypegetJCOType()Returns the instantiated class TypelonggetLength()voidMoveTo(java.lang.String destFileName)voidMoveTo(java.lang.String destFileName, boolean overwrite)FileStreamOpen(FileMode mode)FileStreamOpen(FileMode mode, FileAccess access)FileStreamOpen(FileMode mode, FileAccess access, FileShare share)FileStreamOpen(FileStreamOptions options)FileStreamOpenRead()StreamReaderOpenText()FileStreamOpenWrite()FileInfoReplace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName)FileInfoReplace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName, boolean ignoreMetadataErrors)voidsetIsReadOnly(boolean IsReadOnly)voidsetJCOInstance(org.mases.jcobridge.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=10.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.FileInfo- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
FileInfo
public FileInfo(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
FileInfo
public FileInfo() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
FileInfo
public FileInfo(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException
-
-
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(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classFileSystemInfo
-
getJCOType
public org.mases.jcobridge.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 FileInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFileInfo, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
FileInfoinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CopyTo
public FileInfo CopyTo(java.lang.String destFileName, boolean overwrite) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, NullReferenceException, ExternalException, CultureNotFoundException, MissingMethodException, TargetInvocationException, ObjectDisposedException, IOException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionInvalidOperationExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionIOException
-
CopyTo
public FileInfo CopyTo(java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingMethodException, TargetInvocationException, IOException
-
Replace
public FileInfo Replace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName, boolean ignoreMetadataErrors) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, NullReferenceException, ExternalException, CultureNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNullReferenceExceptionExternalExceptionCultureNotFoundException
-
Replace
public FileInfo Replace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
-
Create
public FileStream Create() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationException
-
Open
public FileStream Open(FileMode mode, FileAccess access, FileShare share) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationException
-
Open
public FileStream Open(FileMode mode, FileAccess access) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionSerializationException
-
Open
public FileStream Open(FileMode mode) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionSerializationException
-
Open
public FileStream Open(FileStreamOptions options) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionIOException
-
OpenRead
public FileStream OpenRead() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionIOException
-
OpenWrite
public FileStream OpenWrite() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationException
-
OpenText
public StreamReader OpenText() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException
-
AppendText
public StreamWriter AppendText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
-
CreateText
public StreamWriter CreateText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
-
Decrypt
public void Decrypt() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
-
Delete
public void Delete() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NotSupportedException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, FormatException, OutOfMemoryException- Overrides:
Deletein classFileSystemInfo- Throws:
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionFormatExceptionOutOfMemoryException
-
Encrypt
public void Encrypt() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
-
MoveTo
public void MoveTo(java.lang.String destFileName, boolean overwrite) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, NullReferenceException, ExternalException, CultureNotFoundException, DirectoryNotFoundException, FileNotFoundException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionInvalidOperationExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionDirectoryNotFoundExceptionFileNotFoundException
-
MoveTo
public void MoveTo(java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, ArrayTypeMismatchException, DirectoryNotFoundException, FileNotFoundException
-
getIsReadOnly
public boolean getIsReadOnly() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException
-
setIsReadOnly
public void setIsReadOnly(boolean IsReadOnly) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException
-
getLength
public long getLength() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, FileNotFoundException
-
getDirectory
public DirectoryInfo getDirectory() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, InvalidOperationException, CultureNotFoundException
-
getDirectoryName
public java.lang.String getDirectoryName() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
-