public class FileInfo extends FileSystemInfo
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.FileInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.IO.FileInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
FileInfo() |
FileInfo(java.lang.Object instance)
Internal constructor.
|
FileInfo(java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
StreamWriter |
AppendText() |
static FileInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into FileInfo, a cast assert is made to check if types are compatible. |
FileInfo |
CopyTo(java.lang.String destFileName) |
FileInfo |
CopyTo(java.lang.String destFileName,
boolean overwrite) |
FileStream |
Create() |
StreamWriter |
CreateText() |
void |
Decrypt() |
void |
Delete() |
void |
Encrypt() |
DirectoryInfo |
getDirectory() |
java.lang.String |
getDirectoryName() |
boolean |
getIsReadOnly() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
long |
getLength() |
void |
MoveTo(java.lang.String destFileName) |
void |
MoveTo(java.lang.String destFileName,
boolean overwrite) |
FileStream |
Open(FileMode mode) |
FileStream |
Open(FileMode mode,
FileAccess access) |
FileStream |
Open(FileMode mode,
FileAccess access,
FileShare share) |
FileStream |
Open(FileStreamOptions options) |
FileStream |
OpenRead() |
StreamReader |
OpenText() |
FileStream |
OpenWrite() |
FileInfo |
Replace(java.lang.String destinationFileName,
java.lang.String destinationBackupFileName) |
FileInfo |
Replace(java.lang.String destinationFileName,
java.lang.String destinationBackupFileName,
boolean ignoreMetadataErrors) |
void |
setIsReadOnly(boolean IsReadOnly) |
void |
setJCOInstance(JCObject instance) |
CreateAsSymbolicLink, getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getLinkTarget, getName, GetObjectData, getUnixFileMode, Refresh, ResolveLinkTarget, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtc, setUnixFileModeGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public FileInfo()
throws java.lang.Throwable
java.lang.Throwablepublic FileInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic FileInfo(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException,
ArrayTypeMismatchException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
public StreamWriter AppendText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
public static FileInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into FileInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFileInfo instancejava.lang.Throwable - in case of error during cast operationpublic FileInfo CopyTo(java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, MissingMethodException, TargetInvocationException, IOException
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
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionInvalidOperationExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionIOExceptionpublic FileStream Create() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionpublic StreamWriter CreateText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
public void Decrypt()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
CultureNotFoundException
public void Delete()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
FormatException,
OutOfMemoryException
Delete in class FileSystemInfojava.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArrayTypeMismatchExceptionFormatExceptionOutOfMemoryExceptionpublic void Encrypt()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
CultureNotFoundException
public DirectoryInfo getDirectory() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, InvalidOperationException, CultureNotFoundException
public java.lang.String getDirectoryName()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionpublic boolean getIsReadOnly()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException,
InvalidOperationException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class FileSystemInfoString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class FileSystemInfoString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class FileSystemInfoObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class FileSystemInfoString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class FileSystemInfoJCType representing the CLR Type of the instantiated Classpublic long getLength()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException,
InvalidOperationException,
FileNotFoundException
public void MoveTo(java.lang.String destFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
CultureNotFoundException,
ArrayTypeMismatchException,
DirectoryNotFoundException,
FileNotFoundException
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
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionInvalidOperationExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionDirectoryNotFoundExceptionFileNotFoundExceptionpublic FileStream Open(FileMode mode) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionSerializationExceptionpublic FileStream Open(FileMode mode, FileAccess access) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionSerializationExceptionpublic FileStream Open(FileMode mode, FileAccess access, FileShare share) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionpublic FileStream Open(FileStreamOptions options) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionIOExceptionpublic FileStream OpenRead() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionIOExceptionpublic StreamReader OpenText() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException
public FileStream OpenWrite() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionSerializationExceptionpublic FileInfo Replace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
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
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionpublic void setIsReadOnly(boolean IsReadOnly)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException,
InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class FileSystemInfo