Package system.io
Class File
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.File
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class File extends NetObject
The base .NET class managing System.IO.File, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.File
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.IO.Filestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 Task
AppendAllTextAsync(java.lang.String path, java.lang.String contents, Encoding encoding, CancellationToken cancellationToken)
static Task
AppendAllTextAsync(java.lang.String path, java.lang.String contents, CancellationToken cancellationToken)
static StreamWriter
AppendText(java.lang.String path)
static File
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFile
, 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 FileSystemInfo
CreateSymbolicLink(java.lang.String path, java.lang.String pathToTarget)
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 FileAttributes
GetAttributes(java.lang.String path)
static FileAttributes
GetAttributes(SafeFileHandle fileHandle)
static DateTime
GetCreationTime(java.lang.String path)
static DateTime
GetCreationTime(SafeFileHandle fileHandle)
static DateTime
GetCreationTimeUtc(java.lang.String path)
static DateTime
GetCreationTimeUtc(SafeFileHandle fileHandle)
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 Typestatic DateTime
GetLastAccessTime(java.lang.String path)
static DateTime
GetLastAccessTime(SafeFileHandle fileHandle)
static DateTime
GetLastAccessTimeUtc(java.lang.String path)
static DateTime
GetLastAccessTimeUtc(SafeFileHandle fileHandle)
static DateTime
GetLastWriteTime(java.lang.String path)
static DateTime
GetLastWriteTime(SafeFileHandle fileHandle)
static DateTime
GetLastWriteTimeUtc(java.lang.String path)
static DateTime
GetLastWriteTimeUtc(SafeFileHandle fileHandle)
static UnixFileMode
GetUnixFileMode(java.lang.String path)
static UnixFileMode
GetUnixFileMode(SafeFileHandle fileHandle)
static void
Move(java.lang.String sourceFileName, java.lang.String destFileName)
static void
Move(java.lang.String sourceFileName, java.lang.String destFileName, boolean overwrite)
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
Open(java.lang.String path, FileStreamOptions options)
static SafeFileHandle
OpenHandle(java.lang.String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize)
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 FileSystemInfo
ResolveLinkTarget(java.lang.String linkPath, boolean returnFinalTarget)
static void
SetAttributes(java.lang.String path, FileAttributes fileAttributes)
static void
SetAttributes(SafeFileHandle fileHandle, FileAttributes fileAttributes)
static void
SetCreationTime(java.lang.String path, DateTime creationTime)
static void
SetCreationTime(SafeFileHandle fileHandle, DateTime creationTime)
static void
SetCreationTimeUtc(java.lang.String path, DateTime creationTimeUtc)
static void
SetCreationTimeUtc(SafeFileHandle fileHandle, DateTime creationTimeUtc)
void
setJCOInstance(JCObject instance)
static void
SetLastAccessTime(java.lang.String path, DateTime lastAccessTime)
static void
SetLastAccessTime(SafeFileHandle fileHandle, DateTime lastAccessTime)
static void
SetLastAccessTimeUtc(java.lang.String path, DateTime lastAccessTimeUtc)
static void
SetLastAccessTimeUtc(SafeFileHandle fileHandle, DateTime lastAccessTimeUtc)
static void
SetLastWriteTime(java.lang.String path, DateTime lastWriteTime)
static void
SetLastWriteTime(SafeFileHandle fileHandle, DateTime lastWriteTime)
static void
SetLastWriteTimeUtc(java.lang.String path, DateTime lastWriteTimeUtc)
static void
SetLastWriteTimeUtc(SafeFileHandle fileHandle, DateTime lastWriteTimeUtc)
static void
SetUnixFileMode(java.lang.String path, UnixFileMode mode)
static void
SetUnixFileMode(SafeFileHandle fileHandle, UnixFileMode mode)
static void
WriteAllBytes(java.lang.String path, byte[] bytes)
static void
WriteAllBytes(java.lang.String dupParam0, JCORefOut dupParam1)
static Task
WriteAllBytesAsync(java.lang.String path, byte[] bytes, CancellationToken cancellationToken)
static Task
WriteAllBytesAsync(java.lang.String dupParam0, JCORefOut dupParam1, CancellationToken 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
WriteAllLines(java.lang.String dupParam0, JCORefOut dupParam1)
static void
WriteAllLines(java.lang.String dupParam0, JCORefOut dupParam1, Encoding dupParam2)
static void
WriteAllText(java.lang.String path, java.lang.String contents)
static void
WriteAllText(java.lang.String path, java.lang.String contents, Encoding encoding)
static Task
WriteAllTextAsync(java.lang.String path, java.lang.String contents, Encoding encoding, CancellationToken cancellationToken)
static Task
WriteAllTextAsync(java.lang.String path, java.lang.String contents, CancellationToken cancellationToken)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.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.File- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static File cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoFile
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
File
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Exists
public static boolean Exists(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
ReadAllBytes
public static byte[] ReadAllBytes(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException, ApplicationException, ArrayTypeMismatchException, WaitHandleCannotBeOpenedException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
ApplicationException
ArrayTypeMismatchException
WaitHandleCannotBeOpenedException
ObjectDisposedException
AbandonedMutexException
-
OpenHandle
public static SafeFileHandle OpenHandle(java.lang.String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException, ApplicationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
ApplicationException
-
GetCreationTime
public static DateTime GetCreationTime(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetCreationTime
public static DateTime GetCreationTime(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetCreationTimeUtc
public static DateTime GetCreationTimeUtc(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetCreationTimeUtc
public static DateTime GetCreationTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetLastAccessTime
public static DateTime GetLastAccessTime(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetLastAccessTime
public static DateTime GetLastAccessTime(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetLastAccessTimeUtc
public static DateTime GetLastAccessTimeUtc(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetLastAccessTimeUtc
public static DateTime GetLastAccessTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetLastWriteTime
public static DateTime GetLastWriteTime(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetLastWriteTime
public static DateTime GetLastWriteTime(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetLastWriteTimeUtc
public static DateTime GetLastWriteTimeUtc(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetLastWriteTimeUtc
public static DateTime GetLastWriteTimeUtc(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
GetAttributes
public static FileAttributes GetAttributes(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
GetAttributes
public static FileAttributes GetAttributes(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
Create
public static FileStream Create(java.lang.String path, int bufferSize, FileOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, SerializationException, IOException
-
Create
public static FileStream Create(java.lang.String path, int bufferSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException
-
Create
public static FileStream Create(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
SerializationException
-
Open
public static FileStream Open(java.lang.String path, FileMode mode, FileAccess access, FileShare share) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException
-
Open
public static FileStream Open(java.lang.String path, FileMode mode, FileAccess access) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
SerializationException
-
Open
public static FileStream Open(java.lang.String path, FileMode mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, SerializationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
SerializationException
-
Open
public static FileStream Open(java.lang.String path, FileStreamOptions options) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, IOException
-
OpenRead
public static FileStream OpenRead(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException
-
OpenWrite
public static FileStream OpenWrite(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException
-
CreateSymbolicLink
public static FileSystemInfo CreateSymbolicLink(java.lang.String path, java.lang.String pathToTarget) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException
-
ResolveLinkTarget
public static FileSystemInfo ResolveLinkTarget(java.lang.String linkPath, boolean returnFinalTarget) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
NotSupportedException
IndexOutOfRangeException
CultureNotFoundException
ArgumentOutOfRangeException
InvalidOperationException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
ArrayTypeMismatchException
-
OpenText
public static StreamReader OpenText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
AppendText
public static StreamWriter AppendText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
CreateText
public static StreamWriter CreateText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
GetUnixFileMode
public static UnixFileMode GetUnixFileMode(SafeFileHandle fileHandle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetUnixFileMode
public static UnixFileMode GetUnixFileMode(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
ReadAllText
public static java.lang.String ReadAllText(java.lang.String path, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException
-
ReadAllText
public static java.lang.String ReadAllText(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException
-
ReadAllLines
public static java.lang.String[] ReadAllLines(java.lang.String path, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
ReadAllLines
public static java.lang.String[] ReadAllLines(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, OutOfMemoryException, InvalidOperationException, NotSupportedException
-
AppendAllTextAsync
public static Task AppendAllTextAsync(java.lang.String path, java.lang.String contents, Encoding encoding, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
AppendAllTextAsync
public static Task AppendAllTextAsync(java.lang.String path, java.lang.String contents, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
-
WriteAllBytesAsync
public static Task WriteAllBytesAsync(java.lang.String path, byte[] bytes, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
WriteAllBytesAsync
public static Task WriteAllBytesAsync(java.lang.String dupParam0, JCORefOut dupParam1, CancellationToken dupParam2) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
-
WriteAllTextAsync
public static Task WriteAllTextAsync(java.lang.String path, java.lang.String contents, Encoding encoding, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
WriteAllTextAsync
public static Task WriteAllTextAsync(java.lang.String path, java.lang.String contents, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
-
AppendAllText
public static void AppendAllText(java.lang.String path, java.lang.String contents, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, OutOfMemoryException, SerializationException, MissingMethodException, TargetInvocationException, ObjectDisposedException, IOException, NotSupportedException, WaitHandleCannotBeOpenedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
OutOfMemoryException
SerializationException
MissingMethodException
TargetInvocationException
ObjectDisposedException
IOException
NotSupportedException
WaitHandleCannotBeOpenedException
AbandonedMutexException
-
AppendAllText
public static void AppendAllText(java.lang.String path, java.lang.String contents) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, IndexOutOfRangeException, CultureNotFoundException, IOException, ObjectDisposedException, NotSupportedException, WaitHandleCannotBeOpenedException, AbandonedMutexException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
IndexOutOfRangeException
CultureNotFoundException
IOException
ObjectDisposedException
NotSupportedException
WaitHandleCannotBeOpenedException
AbandonedMutexException
ArrayTypeMismatchException
-
Copy
public static void Copy(java.lang.String sourceFileName, java.lang.String destFileName, boolean overwrite) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, IOException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
IOException
-
Copy
public static void Copy(java.lang.String sourceFileName, java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
-
Decrypt
public static void Decrypt(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException
-
Delete
public static void Delete(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
-
Encrypt
public static void Encrypt(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException
-
Move
public static void Move(java.lang.String sourceFileName, java.lang.String destFileName, boolean overwrite) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
-
Move
public static void Move(java.lang.String sourceFileName, java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FileNotFoundException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FileNotFoundException
-
Replace
public static void Replace(java.lang.String sourceFileName, 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, ExternalException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
-
Replace
public static void Replace(java.lang.String sourceFileName, java.lang.String destinationFileName, java.lang.String destinationBackupFileName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
-
SetAttributes
public static void SetAttributes(SafeFileHandle fileHandle, FileAttributes fileAttributes) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
OutOfMemoryException
-
SetAttributes
public static void SetAttributes(java.lang.String path, FileAttributes fileAttributes) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException
-
SetCreationTime
public static void SetCreationTime(SafeFileHandle fileHandle, DateTime creationTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
-
SetCreationTime
public static void SetCreationTime(java.lang.String path, DateTime creationTime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetCreationTimeUtc
public static void SetCreationTimeUtc(SafeFileHandle fileHandle, DateTime creationTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
IndexOutOfRangeException
OverflowException
-
SetCreationTimeUtc
public static void SetCreationTimeUtc(java.lang.String path, DateTime creationTimeUtc) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetLastAccessTime
public static void SetLastAccessTime(SafeFileHandle fileHandle, DateTime lastAccessTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
-
SetLastAccessTime
public static void SetLastAccessTime(java.lang.String path, DateTime lastAccessTime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetLastAccessTimeUtc
public static void SetLastAccessTimeUtc(SafeFileHandle fileHandle, DateTime lastAccessTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
IndexOutOfRangeException
OverflowException
-
SetLastAccessTimeUtc
public static void SetLastAccessTimeUtc(java.lang.String path, DateTime lastAccessTimeUtc) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetLastWriteTime
public static void SetLastWriteTime(SafeFileHandle fileHandle, DateTime lastWriteTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
-
SetLastWriteTime
public static void SetLastWriteTime(java.lang.String path, DateTime lastWriteTime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetLastWriteTimeUtc
public static void SetLastWriteTimeUtc(SafeFileHandle fileHandle, DateTime lastWriteTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, IndexOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
IndexOutOfRangeException
OverflowException
-
SetLastWriteTimeUtc
public static void SetLastWriteTimeUtc(java.lang.String path, DateTime lastWriteTimeUtc) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, OverflowException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
InvalidTimeZoneException
SecurityException
UnauthorizedAccessException
IOException
OverflowException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
-
SetUnixFileMode
public static void SetUnixFileMode(SafeFileHandle fileHandle, UnixFileMode mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
SetUnixFileMode
public static void SetUnixFileMode(java.lang.String path, UnixFileMode mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
WriteAllBytes
public static void WriteAllBytes(java.lang.String path, byte[] bytes) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException, ApplicationException, WaitHandleCannotBeOpenedException, ObjectDisposedException, ArrayTypeMismatchException, AbandonedMutexException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
ApplicationException
WaitHandleCannotBeOpenedException
ObjectDisposedException
ArrayTypeMismatchException
AbandonedMutexException
-
WriteAllBytes
public static void WriteAllBytes(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException, ApplicationException, WaitHandleCannotBeOpenedException, ObjectDisposedException, ArrayTypeMismatchException, AbandonedMutexException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
ApplicationException
WaitHandleCannotBeOpenedException
ObjectDisposedException
ArrayTypeMismatchException
AbandonedMutexException
-
WriteAllLines
public static void WriteAllLines(java.lang.String path, java.lang.String[] contents, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
-
WriteAllLines
public static void WriteAllLines(java.lang.String dupParam0, JCORefOut dupParam1, Encoding dupParam2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
InvalidOperationException
PlatformNotSupportedException
-
WriteAllLines
public static void WriteAllLines(java.lang.String path, java.lang.String[] contents) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
-
WriteAllLines
public static void WriteAllLines(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
-
WriteAllText
public static void WriteAllText(java.lang.String path, java.lang.String contents, Encoding encoding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, OutOfMemoryException, SerializationException, MissingMethodException, TargetInvocationException, ObjectDisposedException, IOException, NotSupportedException, WaitHandleCannotBeOpenedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
OutOfMemoryException
SerializationException
MissingMethodException
TargetInvocationException
ObjectDisposedException
IOException
NotSupportedException
WaitHandleCannotBeOpenedException
AbandonedMutexException
-
WriteAllText
public static void WriteAllText(java.lang.String path, java.lang.String contents) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, OutOfMemoryException, SerializationException, IndexOutOfRangeException, CultureNotFoundException, IOException, ObjectDisposedException, NotSupportedException, WaitHandleCannotBeOpenedException, AbandonedMutexException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
OutOfMemoryException
SerializationException
IndexOutOfRangeException
CultureNotFoundException
IOException
ObjectDisposedException
NotSupportedException
WaitHandleCannotBeOpenedException
AbandonedMutexException
ArrayTypeMismatchException
-
-