Package microsoft.visualbasic.fileio
Class FileSystem
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.visualbasic.fileio.FileSystem
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class FileSystem extends NetObject
The base .NET class managing Microsoft.VisualBasic.FileIO.FileSystem, Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.FileIO.FileSystem
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic String
className
Qualified class name: Microsoft.VisualBasic.FileIO.FileSystemstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description FileSystem()
FileSystem(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSystem
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoFileSystem
, a cast assert is made to check if types are compatible.static String
CombinePath(String baseDirectory, String relativePath)
static void
CopyDirectory(String sourceDirectoryName, String destinationDirectoryName)
static void
CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, boolean overwrite)
static void
CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI)
static void
CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel)
static void
CopyFile(String sourceFileName, String destinationFileName)
static void
CopyFile(String sourceFileName, String destinationFileName, boolean overwrite)
static void
CopyFile(String sourceFileName, String destinationFileName, UIOption showUI)
static void
CopyFile(String sourceFileName, String destinationFileName, UIOption showUI, UICancelOption onUserCancel)
static void
CreateDirectory(String directory)
static void
DeleteDirectory(String directory, DeleteDirectoryOption onDirectoryNotEmpty)
static void
DeleteDirectory(String directory, UIOption showUI, RecycleOption recycle)
static void
DeleteDirectory(String directory, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel)
static void
DeleteFile(String file)
static void
DeleteFile(String file, UIOption showUI, RecycleOption recycle)
static void
DeleteFile(String file, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel)
static boolean
DirectoryExists(String directory)
static boolean
FileExists(String file)
static String
getCurrentDirectory()
static DirectoryInfo
GetDirectoryInfo(String directory)
static DriveInfo
GetDriveInfo(String drive)
static FileInfo
GetFileInfo(String file)
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic String
GetName(String path)
static String
GetParentPath(String path)
static String
GetTempFileName()
static void
MoveDirectory(String sourceDirectoryName, String destinationDirectoryName)
static void
MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, boolean overwrite)
static void
MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI)
static void
MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel)
static void
MoveFile(String sourceFileName, String destinationFileName)
static void
MoveFile(String sourceFileName, String destinationFileName, boolean overwrite)
static void
MoveFile(String sourceFileName, String destinationFileName, UIOption showUI)
static void
MoveFile(String sourceFileName, String destinationFileName, UIOption showUI, UICancelOption onUserCancel)
static TextFieldParser
OpenTextFieldParser(String file)
static TextFieldParser
OpenTextFieldParser(String file, int... fieldWidths)
static TextFieldParser
OpenTextFieldParser(String file, String... delimiters)
static TextFieldParser
OpenTextFieldParser(String dupParam0, JCORefOut dupParam1)
static StreamReader
OpenTextFileReader(String file)
static StreamReader
OpenTextFileReader(String file, Encoding encoding)
static StreamWriter
OpenTextFileWriter(String file, boolean append)
static StreamWriter
OpenTextFileWriter(String file, boolean append, Encoding encoding)
static byte[]
ReadAllBytes(String file)
static String
ReadAllText(String file)
static String
ReadAllText(String file, Encoding encoding)
static void
RenameDirectory(String directory, String newName)
static void
RenameFile(String file, String newName)
static void
setCurrentDirectory(String CurrentDirectory)
void
setJCOInstance(JCObject instance)
static void
WriteAllBytes(String file, byte[] data, boolean append)
static void
WriteAllBytes(String dupParam0, JCORefOut dupParam1, boolean dupParam2)
static void
WriteAllText(String file, String text, boolean append)
static void
WriteAllText(String file, String text, boolean append, Encoding encoding)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: Microsoft.VisualBasic.FileIO.FileSystem- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 FileSystem cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoFileSystem
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
FileSystem
instance- Throws:
Throwable
- in case of error during cast operation
-
DirectoryExists
public static boolean DirectoryExists(String directory) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException
-
FileExists
public static boolean FileExists(String file) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, CultureNotFoundException, OutOfMemoryException, ExternalException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
CultureNotFoundException
OutOfMemoryException
ExternalException
-
ReadAllBytes
public static byte[] ReadAllBytes(String file) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, SerializationException, IOException, ArrayTypeMismatchException
-
OpenTextFieldParser
public static TextFieldParser OpenTextFieldParser(String file, int... fieldWidths) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, RegexParseException, RankException, ArrayTypeMismatchException, NotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, ObjectDisposedException, FileNotFoundException, SerializationException, InvalidEnumArgumentException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentException
IndexOutOfRangeException
RegexParseException
RankException
ArrayTypeMismatchException
NotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
ObjectDisposedException
FileNotFoundException
SerializationException
InvalidEnumArgumentException
-
OpenTextFieldParser
public static TextFieldParser OpenTextFieldParser(String dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, RegexParseException, RankException, ArrayTypeMismatchException, NotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, ObjectDisposedException, FileNotFoundException, SerializationException, InvalidEnumArgumentException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentException
IndexOutOfRangeException
RegexParseException
RankException
ArrayTypeMismatchException
NotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
ObjectDisposedException
FileNotFoundException
SerializationException
InvalidEnumArgumentException
-
OpenTextFieldParser
public static TextFieldParser OpenTextFieldParser(String file, String... delimiters) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, RegexParseException, RankException, ArrayTypeMismatchException, NotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, ObjectDisposedException, FileNotFoundException, SerializationException, InvalidEnumArgumentException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentException
IndexOutOfRangeException
RegexParseException
RankException
ArrayTypeMismatchException
NotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
ObjectDisposedException
FileNotFoundException
SerializationException
InvalidEnumArgumentException
-
OpenTextFieldParser
public static TextFieldParser OpenTextFieldParser(String file) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, RegexParseException, RankException, ArrayTypeMismatchException, NotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, ObjectDisposedException, FileNotFoundException, SerializationException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentException
IndexOutOfRangeException
RegexParseException
RankException
ArrayTypeMismatchException
NotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
ObjectDisposedException
FileNotFoundException
SerializationException
-
GetDirectoryInfo
public static DirectoryInfo GetDirectoryInfo(String directory) throws Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, CultureNotFoundException
-
GetDriveInfo
public static DriveInfo GetDriveInfo(String drive) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException
-
GetFileInfo
public static FileInfo GetFileInfo(String file) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, CultureNotFoundException, ObjectDisposedException, FormatException, NotSupportedException
-
OpenTextFileReader
public static StreamReader OpenTextFileReader(String file, Encoding encoding) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, CultureNotFoundException, ObjectDisposedException, FormatException, NotSupportedException
-
OpenTextFileReader
public static StreamReader OpenTextFileReader(String file) throws Throwable, PlatformNotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
- Throws:
Throwable
PlatformNotSupportedException
OutOfMemoryException
ExternalException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ArgumentException
ArgumentOutOfRangeException
FormatException
NotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
-
OpenTextFileWriter
public static StreamWriter OpenTextFileWriter(String file, boolean append, Encoding encoding) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, CultureNotFoundException, ObjectDisposedException, FormatException, NotSupportedException
-
OpenTextFileWriter
public static StreamWriter OpenTextFileWriter(String file, boolean append) throws Throwable, PlatformNotSupportedException, OutOfMemoryException, ExternalException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ArgumentException, ArgumentOutOfRangeException, FormatException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
- Throws:
Throwable
PlatformNotSupportedException
OutOfMemoryException
ExternalException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ArgumentException
ArgumentOutOfRangeException
FormatException
NotSupportedException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
-
CombinePath
public static String CombinePath(String baseDirectory, String relativePath) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException, OutOfMemoryException, ExternalException, ArgumentException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
IndexOutOfRangeException
InvalidOperationException
OutOfMemoryException
ExternalException
ArgumentException
ArgumentOutOfRangeException
RankException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
-
GetName
public static String GetName(String path) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
GetParentPath
public static String GetParentPath(String path) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException, FormatException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
ExternalException
FormatException
-
GetTempFileName
public static String GetTempFileName() throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException
-
ReadAllText
public static String ReadAllText(String file, Encoding encoding) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException
-
ReadAllText
public static String ReadAllText(String file) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException
-
CopyDirectory
public static void CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, boolean overwrite) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
CultureNotFoundException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyDirectory
public static void CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyDirectory
public static void CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyDirectory
public static void CopyDirectory(String sourceDirectoryName, String destinationDirectoryName) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
CultureNotFoundException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyFile
public static void CopyFile(String sourceFileName, String destinationFileName, boolean overwrite) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyFile
public static void CopyFile(String sourceFileName, String destinationFileName, UIOption showUI, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyFile
public static void CopyFile(String sourceFileName, String destinationFileName, UIOption showUI) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CopyFile
public static void CopyFile(String sourceFileName, String destinationFileName) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
CreateDirectory
public static void CreateDirectory(String directory) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException, FormatException, IOException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
ExternalException
FormatException
IOException
-
DeleteDirectory
public static void DeleteDirectory(String directory, DeleteDirectoryOption onDirectoryNotEmpty) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, CultureNotFoundException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
CultureNotFoundException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
DeleteDirectory
public static void DeleteDirectory(String directory, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
DeleteDirectory
public static void DeleteDirectory(String directory, UIOption showUI, RecycleOption recycle) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
DeleteFile
public static void DeleteFile(String file, UIOption showUI, RecycleOption recycle, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, IOException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
IOException
-
DeleteFile
public static void DeleteFile(String file, UIOption showUI, RecycleOption recycle) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, IOException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
IOException
-
DeleteFile
public static void DeleteFile(String file) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, IOException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
IOException
-
MoveDirectory
public static void MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, boolean overwrite) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
CultureNotFoundException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveDirectory
public static void MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveDirectory
public static void MoveDirectory(String sourceDirectoryName, String destinationDirectoryName, UIOption showUI) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveDirectory
public static void MoveDirectory(String sourceDirectoryName, String destinationDirectoryName) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, RankException, ArrayTypeMismatchException, DirectoryNotFoundException, IOException, Win32Exception, OperationCanceledException, FileNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
NotSupportedException
CultureNotFoundException
OutOfMemoryException
RankException
ArrayTypeMismatchException
DirectoryNotFoundException
IOException
Win32Exception
OperationCanceledException
FileNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveFile
public static void MoveFile(String sourceFileName, String destinationFileName, boolean overwrite) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveFile
public static void MoveFile(String sourceFileName, String destinationFileName, UIOption showUI, UICancelOption onUserCancel) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveFile
public static void MoveFile(String sourceFileName, String destinationFileName, UIOption showUI) throws Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ObjectDisposedException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
MoveFile
public static void MoveFile(String sourceFileName, String destinationFileName) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, NotSupportedException, RankException, ArrayTypeMismatchException, FileNotFoundException, IOException, Win32Exception, OperationCanceledException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
NotSupportedException
RankException
ArrayTypeMismatchException
FileNotFoundException
IOException
Win32Exception
OperationCanceledException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
-
RenameDirectory
public static void RenameDirectory(String directory, String newName) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, OutOfMemoryException, ExternalException, FormatException, IOException, DirectoryNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
IndexOutOfRangeException
NotSupportedException
ObjectDisposedException
RankException
OutOfMemoryException
ExternalException
FormatException
IOException
DirectoryNotFoundException
-
RenameFile
public static void RenameFile(String file, String newName) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, CultureNotFoundException, ObjectDisposedException, FormatException, NotSupportedException, FileNotFoundException, IOException
- Throws:
Throwable
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
CultureNotFoundException
ObjectDisposedException
FormatException
NotSupportedException
FileNotFoundException
IOException
-
WriteAllBytes
public static void WriteAllBytes(String file, byte[] data, boolean append) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, InvalidOperationException, FormatException, SerializationException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
ArgumentOutOfRangeException
NotSupportedException
ObjectDisposedException
InvalidOperationException
FormatException
SerializationException
-
WriteAllBytes
public static void WriteAllBytes(String dupParam0, JCORefOut dupParam1, boolean dupParam2) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, InvalidOperationException, FormatException, SerializationException
- Throws:
Throwable
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
ArgumentOutOfRangeException
NotSupportedException
ObjectDisposedException
InvalidOperationException
FormatException
SerializationException
-
WriteAllText
public static void WriteAllText(String file, String text, boolean append, Encoding encoding) throws Throwable, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, InvalidOperationException, FormatException
-
WriteAllText
public static void WriteAllText(String file, String text, boolean append) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, ArgumentException, CultureNotFoundException, ObjectDisposedException, FormatException, NotSupportedException, ArrayTypeMismatchException
- Throws:
Throwable
PlatformNotSupportedException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
ArgumentException
CultureNotFoundException
ObjectDisposedException
FormatException
NotSupportedException
ArrayTypeMismatchException
-
getCurrentDirectory
public static String getCurrentDirectory() throws Throwable, InvalidOperationException, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, OutOfMemoryException
-
setCurrentDirectory
public static void setCurrentDirectory(String CurrentDirectory) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException
-
-