Class Files
public class Files : JVMBridgeBase<Files>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Files>Files
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Files>.IsAssignableFrom(IJavaType)JVMBridgeBase<Files>.IsAssignableFrom<T>()JVMBridgeBase<Files>.Execute<T>(params T[])JVMBridgeBase<Files>.DynBridgeClazzJVMBridgeBase<Files>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Files()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Files()
Files(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Files(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Copy(InputStream, Path, params CopyOption[])
public static long Copy(InputStream arg0, Path arg1, params CopyOption[] arg2)
Parameters
arg0
InputStreamarg1
Patharg2
CopyOption[]
Returns
Exceptions
Copy(Path, OutputStream)
public static long Copy(Path arg0, OutputStream arg1)
Parameters
arg0
Patharg1
OutputStream
Returns
Exceptions
Copy(Path, Path, params CopyOption[])
public static Path Copy(Path arg0, Path arg1, params CopyOption[] arg2)
Parameters
arg0
Patharg1
Patharg2
CopyOption[]
Returns
Exceptions
CreateDirectories(Path, params FileAttribute<object>[])
public static Path CreateDirectories(Path arg0, params FileAttribute<object>[] arg1)
Parameters
arg0
Patharg1
FileAttribute<object>[]
Returns
Exceptions
CreateDirectory(Path, params FileAttribute<object>[])
public static Path CreateDirectory(Path arg0, params FileAttribute<object>[] arg1)
Parameters
arg0
Patharg1
FileAttribute<object>[]
Returns
Exceptions
CreateFile(Path, params FileAttribute<object>[])
public static Path CreateFile(Path arg0, params FileAttribute<object>[] arg1)
Parameters
arg0
Patharg1
FileAttribute<object>[]
Returns
Exceptions
CreateLink(Path, Path)
public static Path CreateLink(Path arg0, Path arg1)
Parameters
Returns
Exceptions
CreateSymbolicLink(Path, Path, params FileAttribute<object>[])
public static Path CreateSymbolicLink(Path arg0, Path arg1, params FileAttribute<object>[] arg2)
Parameters
arg0
Patharg1
Patharg2
FileAttribute<object>[]
Returns
Exceptions
CreateTempDirectory(String, params FileAttribute<object>[])
public static Path CreateTempDirectory(String arg0, params FileAttribute<object>[] arg1)
Parameters
arg0
Stringarg1
FileAttribute<object>[]
Returns
Exceptions
CreateTempDirectory(Path, String, params FileAttribute<object>[])
public static Path CreateTempDirectory(Path arg0, String arg1, params FileAttribute<object>[] arg2)
Parameters
arg0
Patharg1
Stringarg2
FileAttribute<object>[]
Returns
Exceptions
CreateTempFile(String, String, params FileAttribute<object>[])
public static Path CreateTempFile(String arg0, String arg1, params FileAttribute<object>[] arg2)
Parameters
arg0
Stringarg1
Stringarg2
FileAttribute<object>[]
Returns
Exceptions
CreateTempFile(Path, String, String, params FileAttribute<object>[])
public static Path CreateTempFile(Path arg0, String arg1, String arg2, params FileAttribute<object>[] arg3)
Parameters
arg0
Patharg1
Stringarg2
Stringarg3
FileAttribute<object>[]
Returns
Exceptions
Delete(Path)
public static void Delete(Path arg0)
Parameters
Exceptions
DeleteIfExists(Path)
public static bool DeleteIfExists(Path arg0)
Parameters
Returns
Exceptions
Exists(Path, params LinkOption[])
public static bool Exists(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
Find(Path, int, BiPredicate<Path, BasicFileAttributes>, params FileVisitOption[])
public static Stream<Path> Find(Path arg0, int arg1, BiPredicate<Path, BasicFileAttributes> arg2, params FileVisitOption[] arg3)
Parameters
arg0
Patharg1
intarg2
BiPredicate<Path, BasicFileAttributes>arg3
FileVisitOption[]
Returns
Exceptions
GetAttribute(Path, String, params LinkOption[])
public static object GetAttribute(Path arg0, String arg1, params LinkOption[] arg2)
Parameters
arg0
Patharg1
Stringarg2
LinkOption[]
Returns
Exceptions
GetFileAttributeView<V>(Path, Class, params LinkOption[])
public static V GetFileAttributeView<V>(Path arg0, Class arg1, params LinkOption[] arg2) where V : IFileAttributeView, new()
Parameters
arg0
Patharg1
Classarg2
LinkOption[]
Returns
- V
V
Type Parameters
GetFileStore(Path)
public static FileStore GetFileStore(Path arg0)
Parameters
Returns
Exceptions
GetLastModifiedTime(Path, params LinkOption[])
public static FileTime GetLastModifiedTime(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
Exceptions
GetOwner(Path, params LinkOption[])
public static UserPrincipal GetOwner(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
Exceptions
GetPosixFilePermissions(Path, params LinkOption[])
public static Set<PosixFilePermission> GetPosixFilePermissions(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
Exceptions
IsDirectory(Path, params LinkOption[])
public static bool IsDirectory(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
IsExecutable(Path)
public static bool IsExecutable(Path arg0)
Parameters
Returns
IsHidden(Path)
public static bool IsHidden(Path arg0)
Parameters
Returns
Exceptions
IsReadable(Path)
public static bool IsReadable(Path arg0)
Parameters
Returns
IsRegularFile(Path, params LinkOption[])
public static bool IsRegularFile(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
IsSameFile(Path, Path)
public static bool IsSameFile(Path arg0, Path arg1)
Parameters
Returns
Exceptions
IsSymbolicLink(Path)
public static bool IsSymbolicLink(Path arg0)
Parameters
Returns
IsWritable(Path)
public static bool IsWritable(Path arg0)
Parameters
Returns
Lines(Path)
public static Stream<String> Lines(Path arg0)
Parameters
Returns
Exceptions
Lines(Path, Charset)
public static Stream<String> Lines(Path arg0, Charset arg1)
Parameters
Returns
Exceptions
List(Path)
public static Stream<Path> List(Path arg0)
Parameters
Returns
Exceptions
Move(Path, Path, params CopyOption[])
public static Path Move(Path arg0, Path arg1, params CopyOption[] arg2)
Parameters
arg0
Patharg1
Patharg2
CopyOption[]
Returns
Exceptions
NewBufferedReader(Path)
public static BufferedReader NewBufferedReader(Path arg0)
Parameters
Returns
Exceptions
NewBufferedReader(Path, Charset)
public static BufferedReader NewBufferedReader(Path arg0, Charset arg1)
Parameters
Returns
Exceptions
NewBufferedWriter(Path, Charset, params OpenOption[])
public static BufferedWriter NewBufferedWriter(Path arg0, Charset arg1, params OpenOption[] arg2)
Parameters
arg0
Patharg1
Charsetarg2
OpenOption[]
Returns
Exceptions
NewBufferedWriter(Path, params OpenOption[])
public static BufferedWriter NewBufferedWriter(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
NewByteChannel(Path, params OpenOption[])
public static SeekableByteChannel NewByteChannel(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
NewByteChannel<Arg1ExtendsJava_Nio_File_OpenOption>(Path, Set<Arg1ExtendsJava_Nio_File_OpenOption>, params FileAttribute<object>[])
public static SeekableByteChannel NewByteChannel<Arg1ExtendsJava_Nio_File_OpenOption>(Path arg0, Set<Arg1ExtendsJava_Nio_File_OpenOption> arg1, params FileAttribute<object>[] arg2) where Arg1ExtendsJava_Nio_File_OpenOption : OpenOption
Parameters
arg0
Patharg1
Set<Arg1ExtendsJava_Nio_File_OpenOption>arg2
FileAttribute<object>[]
Returns
Type Parameters
Arg1ExtendsJava_Nio_File_OpenOption
Exceptions
NewDirectoryStream(Path)
public static DirectoryStream<Path> NewDirectoryStream(Path arg0)
Parameters
Returns
Exceptions
NewDirectoryStream(Path, String)
public static DirectoryStream<Path> NewDirectoryStream(Path arg0, String arg1)
Parameters
Returns
Exceptions
NewDirectoryStream<Arg1objectSuperJava_Nio_File_Path>(Path, Filter<Arg1objectSuperJava_Nio_File_Path>)
public static DirectoryStream<Path> NewDirectoryStream<Arg1objectSuperJava_Nio_File_Path>(Path arg0, DirectoryStream.Filter<Arg1objectSuperJava_Nio_File_Path> arg1) where Arg1objectSuperJava_Nio_File_Path : Path
Parameters
arg0
Patharg1
DirectoryStream.Filter<Arg1objectSuperJava_Nio_File_Path>
Returns
Type Parameters
Arg1objectSuperJava_Nio_File_Path
Exceptions
NewInputStream(Path, params OpenOption[])
public static InputStream NewInputStream(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
NewOutputStream(Path, params OpenOption[])
public static OutputStream NewOutputStream(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
NotExists(Path, params LinkOption[])
public static bool NotExists(Path arg0, params LinkOption[] arg1)
Parameters
arg0
Patharg1
LinkOption[]
Returns
ProbeContentType(Path)
public static String ProbeContentType(Path arg0)
Parameters
Returns
Exceptions
ReadAllBytes(Path)
public static byte[] ReadAllBytes(Path arg0)
Parameters
Returns
Exceptions
ReadAllLines(Path)
public static List<String> ReadAllLines(Path arg0)
Parameters
Returns
Exceptions
ReadAllLines(Path, Charset)
public static List<String> ReadAllLines(Path arg0, Charset arg1)
Parameters
Returns
Exceptions
ReadAttributes(Path, String, params LinkOption[])
public static Map<String, object> ReadAttributes(Path arg0, String arg1, params LinkOption[] arg2)
Parameters
arg0
Patharg1
Stringarg2
LinkOption[]
Returns
Exceptions
ReadAttributes<A>(Path, Class, params LinkOption[])
public static A ReadAttributes<A>(Path arg0, Class arg1, params LinkOption[] arg2) where A : IBasicFileAttributes, new()
Parameters
arg0
Patharg1
Classarg2
LinkOption[]
Returns
- A
A
Type Parameters
Exceptions
ReadString(Path)
public static String ReadString(Path arg0)
Parameters
Returns
Exceptions
ReadString(Path, Charset)
public static String ReadString(Path arg0, Charset arg1)
Parameters
Returns
Exceptions
ReadSymbolicLink(Path)
public static Path ReadSymbolicLink(Path arg0)
Parameters
Returns
Exceptions
SetAttribute(Path, String, object, params LinkOption[])
public static Path SetAttribute(Path arg0, String arg1, object arg2, params LinkOption[] arg3)
Parameters
arg0
Patharg1
Stringarg2
objectarg3
LinkOption[]
Returns
Exceptions
SetLastModifiedTime(Path, FileTime)
public static Path SetLastModifiedTime(Path arg0, FileTime arg1)
Parameters
Returns
Exceptions
SetOwner(Path, UserPrincipal)
public static Path SetOwner(Path arg0, UserPrincipal arg1)
Parameters
arg0
Patharg1
UserPrincipal
Returns
Exceptions
SetPosixFilePermissions(Path, Set<PosixFilePermission>)
public static Path SetPosixFilePermissions(Path arg0, Set<PosixFilePermission> arg1)
Parameters
arg0
Patharg1
Set<PosixFilePermission>
Returns
Exceptions
Size(Path)
public static long Size(Path arg0)
Parameters
Returns
Exceptions
Walk(Path, params FileVisitOption[])
public static Stream<Path> Walk(Path arg0, params FileVisitOption[] arg1)
Parameters
arg0
Patharg1
FileVisitOption[]
Returns
Exceptions
Walk(Path, int, params FileVisitOption[])
public static Stream<Path> Walk(Path arg0, int arg1, params FileVisitOption[] arg2)
Parameters
arg0
Patharg1
intarg2
FileVisitOption[]
Returns
Exceptions
WalkFileTree<Arg1objectSuperJava_Nio_File_Path>(Path, FileVisitor<Arg1objectSuperJava_Nio_File_Path>)
public static Path WalkFileTree<Arg1objectSuperJava_Nio_File_Path>(Path arg0, FileVisitor<Arg1objectSuperJava_Nio_File_Path> arg1) where Arg1objectSuperJava_Nio_File_Path : Path
Parameters
arg0
Patharg1
FileVisitor<Arg1objectSuperJava_Nio_File_Path>
Returns
Type Parameters
Arg1objectSuperJava_Nio_File_Path
Exceptions
WalkFileTree<Arg3objectSuperJava_Nio_File_Path>(Path, Set<FileVisitOption>, int, FileVisitor<Arg3objectSuperJava_Nio_File_Path>)
public static Path WalkFileTree<Arg3objectSuperJava_Nio_File_Path>(Path arg0, Set<FileVisitOption> arg1, int arg2, FileVisitor<Arg3objectSuperJava_Nio_File_Path> arg3) where Arg3objectSuperJava_Nio_File_Path : Path
Parameters
arg0
Patharg1
Set<FileVisitOption>arg2
intarg3
FileVisitor<Arg3objectSuperJava_Nio_File_Path>
Returns
Type Parameters
Arg3objectSuperJava_Nio_File_Path
Exceptions
Write(Path, byte[], params OpenOption[])
public static Path Write(Path arg0, byte[] arg1, params OpenOption[] arg2)
Parameters
arg0
Patharg1
byte[]arg2
OpenOption[]
Returns
Exceptions
WriteString(Path, CharSequence, Charset, params OpenOption[])
public static Path WriteString(Path arg0, CharSequence arg1, Charset arg2, params OpenOption[] arg3)
Parameters
arg0
Patharg1
CharSequencearg2
Charsetarg3
OpenOption[]
Returns
Exceptions
WriteString(Path, CharSequence, params OpenOption[])
public static Path WriteString(Path arg0, CharSequence arg1, params OpenOption[] arg2)
Parameters
arg0
Patharg1
CharSequencearg2
OpenOption[]
Returns
Exceptions
Write<Arg1ExtendsJava_Lang_CharSequence>(Path, Iterable<Arg1ExtendsJava_Lang_CharSequence>, Charset, params OpenOption[])
public static Path Write<Arg1ExtendsJava_Lang_CharSequence>(Path arg0, Iterable<Arg1ExtendsJava_Lang_CharSequence> arg1, Charset arg2, params OpenOption[] arg3) where Arg1ExtendsJava_Lang_CharSequence : CharSequence
Parameters
arg0
Patharg1
Iterable<Arg1ExtendsJava_Lang_CharSequence>arg2
Charsetarg3
OpenOption[]
Returns
Type Parameters
Arg1ExtendsJava_Lang_CharSequence
Exceptions
Write<Arg1ExtendsJava_Lang_CharSequence>(Path, Iterable<Arg1ExtendsJava_Lang_CharSequence>, params OpenOption[])
public static Path Write<Arg1ExtendsJava_Lang_CharSequence>(Path arg0, Iterable<Arg1ExtendsJava_Lang_CharSequence> arg1, params OpenOption[] arg2) where Arg1ExtendsJava_Lang_CharSequence : CharSequence
Parameters
arg0
Patharg1
Iterable<Arg1ExtendsJava_Lang_CharSequence>arg2
OpenOption[]
Returns
Type Parameters
Arg1ExtendsJava_Lang_CharSequence