public class File extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.File
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.File
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
File() |
File(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AppendAllText(java.lang.String path,
java.lang.String contents) |
static void |
AppendAllText(java.lang.String path,
java.lang.String contents,
Encoding encoding) |
static StreamWriter |
AppendText(java.lang.String path) |
static File |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into File, a cast assert is made to check if types are compatible. |
static void |
Copy(java.lang.String sourceFileName,
java.lang.String destFileName) |
static void |
Copy(java.lang.String sourceFileName,
java.lang.String destFileName,
boolean overwrite) |
static FileStream |
Create(java.lang.String path) |
static FileStream |
Create(java.lang.String path,
int bufferSize) |
static FileStream |
Create(java.lang.String path,
int bufferSize,
FileOptions options) |
static FileStream |
Create(java.lang.String path,
int bufferSize,
FileOptions options,
FileSecurity fileSecurity) |
static StreamWriter |
CreateText(java.lang.String path) |
static void |
Decrypt(java.lang.String path) |
static void |
Delete(java.lang.String path) |
static void |
Encrypt(java.lang.String path) |
static boolean |
Exists(java.lang.String path) |
static FileSecurity |
GetAccessControl(java.lang.String path) |
static FileSecurity |
GetAccessControl(java.lang.String path,
AccessControlSections includeSections) |
static FileAttributes |
GetAttributes(java.lang.String path) |
static DateTime |
GetCreationTime(java.lang.String path) |
static DateTime |
GetCreationTimeUtc(java.lang.String path) |
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
|
static DateTime |
GetLastAccessTime(java.lang.String path) |
static DateTime |
GetLastAccessTimeUtc(java.lang.String path) |
static DateTime |
GetLastWriteTime(java.lang.String path) |
static DateTime |
GetLastWriteTimeUtc(java.lang.String path) |
static void |
Move(java.lang.String sourceFileName,
java.lang.String destFileName) |
static FileStream |
Open(java.lang.String path,
FileMode mode) |
static FileStream |
Open(java.lang.String path,
FileMode mode,
FileAccess access) |
static FileStream |
Open(java.lang.String path,
FileMode mode,
FileAccess access,
FileShare share) |
static FileStream |
OpenRead(java.lang.String path) |
static StreamReader |
OpenText(java.lang.String path) |
static FileStream |
OpenWrite(java.lang.String path) |
static byte[] |
ReadAllBytes(java.lang.String path) |
static java.lang.String[] |
ReadAllLines(java.lang.String path) |
static java.lang.String[] |
ReadAllLines(java.lang.String path,
Encoding encoding) |
static java.lang.String |
ReadAllText(java.lang.String path) |
static java.lang.String |
ReadAllText(java.lang.String path,
Encoding encoding) |
static void |
Replace(java.lang.String sourceFileName,
java.lang.String destinationFileName,
java.lang.String destinationBackupFileName) |
static void |
Replace(java.lang.String sourceFileName,
java.lang.String destinationFileName,
java.lang.String destinationBackupFileName,
boolean ignoreMetadataErrors) |
static void |
SetAccessControl(java.lang.String path,
FileSecurity fileSecurity) |
static void |
SetAttributes(java.lang.String path,
FileAttributes fileAttributes) |
static void |
SetCreationTime(java.lang.String path,
DateTime creationTime) |
static void |
SetCreationTimeUtc(java.lang.String path,
DateTime creationTimeUtc) |
void |
setJCOInstance(JCObject instance) |
static void |
SetLastAccessTime(java.lang.String path,
DateTime lastAccessTime) |
static void |
SetLastAccessTimeUtc(java.lang.String path,
DateTime lastAccessTimeUtc) |
static void |
SetLastWriteTime(java.lang.String path,
DateTime lastWriteTime) |
static void |
SetLastWriteTimeUtc(java.lang.String path,
DateTime lastWriteTimeUtc) |
static void |
WriteAllBytes(java.lang.String path,
byte[] bytes) |
static void |
WriteAllBytes(java.lang.String dupParam0,
JCORefOut dupParam1) |
static void |
WriteAllLines(java.lang.String dupParam0,
JCORefOut dupParam1) |
static void |
WriteAllLines(java.lang.String dupParam0,
JCORefOut dupParam1,
Encoding dupParam2) |
static void |
WriteAllLines(java.lang.String path,
java.lang.String[] contents) |
static void |
WriteAllLines(java.lang.String path,
java.lang.String[] contents,
Encoding encoding) |
static void |
WriteAllText(java.lang.String path,
java.lang.String contents) |
static void |
WriteAllText(java.lang.String path,
java.lang.String contents,
Encoding encoding) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public File()
throws java.lang.Throwable
java.lang.Throwablepublic File(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static void AppendAllText(java.lang.String path,
java.lang.String contents)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
SecurityException,
FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionFormatExceptionpublic static void AppendAllText(java.lang.String path,
java.lang.String contents,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
SecurityException,
FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionFormatExceptionpublic static StreamWriter AppendText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, PathTooLongException, CultureNotFoundException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, NullReferenceException, SecurityException, IOException
public static File cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into File, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFile instancejava.lang.Throwable - in case of error during cast operationpublic static void Copy(java.lang.String sourceFileName,
java.lang.String destFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static void Copy(java.lang.String sourceFileName,
java.lang.String destFileName,
boolean overwrite)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static FileStream Create(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException
public static FileStream Create(java.lang.String path, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static FileStream Create(java.lang.String path, int bufferSize, FileOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static FileStream Create(java.lang.String path, int bufferSize, FileOptions options, FileSecurity fileSecurity) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, SecurityException, KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionSecurityExceptionKeyNotFoundExceptionpublic static StreamWriter CreateText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, PathTooLongException, CultureNotFoundException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, NullReferenceException, SecurityException, IOException
public static void Decrypt(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionpublic static void Delete(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static void Encrypt(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionpublic static boolean Exists(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static FileSecurity GetAccessControl(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, IndexOutOfRangeException, NotSupportedException
public static FileSecurity GetAccessControl(java.lang.String path, AccessControlSections includeSections) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OutOfMemoryException, UnauthorizedAccessException, InvalidOperationException, PrivilegeNotHeldException, SystemException, ArgumentOutOfRangeException, OverflowException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionInvalidOperationExceptionPrivilegeNotHeldExceptionSystemExceptionArgumentOutOfRangeExceptionOverflowExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionpublic static FileAttributes GetAttributes(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionpublic static DateTime GetCreationTime(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException, InvalidTimeZoneException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionInvalidTimeZoneExceptionpublic static DateTime GetCreationTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static DateTime GetLastAccessTime(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException, InvalidTimeZoneException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionInvalidTimeZoneExceptionpublic static DateTime GetLastAccessTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static DateTime GetLastWriteTime(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException, InvalidTimeZoneException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionInvalidTimeZoneExceptionpublic static DateTime GetLastWriteTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PathTooLongException, ArgumentOutOfRangeException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, InvalidOperationException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static void Move(java.lang.String sourceFileName,
java.lang.String destFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidOperationExceptionNotSupportedExceptionpublic static FileStream Open(java.lang.String path, FileMode mode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException
public static FileStream Open(java.lang.String path, FileMode mode, FileAccess access) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, IndexOutOfRangeException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException, IOException
public static FileStream Open(java.lang.String path, FileMode mode, FileAccess access, FileShare share) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static FileStream OpenRead(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static StreamReader OpenText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, PathTooLongException, CultureNotFoundException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, NullReferenceException, SecurityException, IOException
public static FileStream OpenWrite(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException, InvalidOperationException, NullReferenceException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static byte[] ReadAllBytes(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
EndOfStreamException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionEndOfStreamExceptionpublic static java.lang.String[] ReadAllLines(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException,
OutOfMemoryException
public static java.lang.String[] ReadAllLines(java.lang.String path,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException,
OutOfMemoryException
public static java.lang.String ReadAllText(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
OutOfMemoryException
public static java.lang.String ReadAllText(java.lang.String path,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
OutOfMemoryException
public static void Replace(java.lang.String sourceFileName,
java.lang.String destinationFileName,
java.lang.String destinationBackupFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionpublic static void Replace(java.lang.String sourceFileName,
java.lang.String destinationFileName,
java.lang.String destinationBackupFileName,
boolean ignoreMetadataErrors)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionpublic static void SetAccessControl(java.lang.String path,
FileSecurity fileSecurity)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
PrivilegeNotHeldException,
InvalidProgramException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionPrivilegeNotHeldExceptionInvalidProgramExceptionpublic static void SetAttributes(java.lang.String path,
FileAttributes fileAttributes)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionpublic static void SetCreationTime(java.lang.String path,
DateTime creationTime)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
SecurityException,
IOException,
InvalidOperationException,
NotSupportedException,
OverflowException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
DriveNotFoundException,
OperationCanceledException,
NullReferenceException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionIOExceptionInvalidOperationExceptionNotSupportedExceptionOverflowExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionOperationCanceledExceptionNullReferenceExceptionIndexOutOfRangeExceptionpublic static void SetCreationTimeUtc(java.lang.String path,
DateTime creationTimeUtc)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
InvalidTimeZoneException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionInvalidTimeZoneExceptionOverflowExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static void SetLastAccessTime(java.lang.String path,
DateTime lastAccessTime)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
SecurityException,
IOException,
InvalidOperationException,
NotSupportedException,
OverflowException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
DriveNotFoundException,
OperationCanceledException,
NullReferenceException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionIOExceptionInvalidOperationExceptionNotSupportedExceptionOverflowExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionOperationCanceledExceptionNullReferenceExceptionIndexOutOfRangeExceptionpublic static void SetLastAccessTimeUtc(java.lang.String path,
DateTime lastAccessTimeUtc)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
InvalidTimeZoneException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionInvalidTimeZoneExceptionOverflowExceptionpublic static void SetLastWriteTime(java.lang.String path,
DateTime lastWriteTime)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidTimeZoneException,
SecurityException,
IOException,
InvalidOperationException,
NotSupportedException,
OverflowException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
DriveNotFoundException,
OperationCanceledException,
NullReferenceException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionSecurityExceptionIOExceptionInvalidOperationExceptionNotSupportedExceptionOverflowExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionOperationCanceledExceptionNullReferenceExceptionIndexOutOfRangeExceptionpublic static void SetLastWriteTimeUtc(java.lang.String path,
DateTime lastWriteTimeUtc)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IOException,
InvalidTimeZoneException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionIndexOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIOExceptionInvalidTimeZoneExceptionOverflowExceptionpublic static void WriteAllBytes(java.lang.String path,
byte[] bytes)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static void WriteAllBytes(java.lang.String dupParam0,
JCORefOut dupParam1)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionpublic static void WriteAllLines(java.lang.String dupParam0,
JCORefOut dupParam1)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException
public static void WriteAllLines(java.lang.String dupParam0,
JCORefOut dupParam1,
Encoding dupParam2)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException
public static void WriteAllLines(java.lang.String path,
java.lang.String[] contents)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException
public static void WriteAllLines(java.lang.String path,
java.lang.String[] contents,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
IndexOutOfRangeException,
NullReferenceException,
SecurityException,
IOException
public static void WriteAllText(java.lang.String path,
java.lang.String contents)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeExceptionpublic static void WriteAllText(java.lang.String path,
java.lang.String contents,
Encoding encoding)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException,
PathTooLongException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException,
InvalidOperationException,
NullReferenceException,
SecurityException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionInvalidOperationExceptionNullReferenceExceptionSecurityExceptionIndexOutOfRangeException