Table of Contents

Class Files

Namespace
Java.Nio.File
Assembly
MASES.JNet.dll
public class Files : JVMBridgeBase<Files>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Files>
Files
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Files>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Files>.IsAssignableFrom<T>()
JVMBridgeBase<Files>.Execute<T>(params T[])
JVMBridgeBase<Files>.DynBridgeClazz
JVMBridgeBase<Files>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Copy(InputStream, Path, params CopyOption[])

public static long Copy(InputStream arg0, Path arg1, params CopyOption[] arg2)

Parameters

arg0 InputStream

InputStream

arg1 Path

Path

arg2 CopyOption[]

CopyOption

Returns

long

long

Exceptions

IOException

Copy(Path, OutputStream)

public static long Copy(Path arg0, OutputStream arg1)

Parameters

arg0 Path

Path

arg1 OutputStream

OutputStream

Returns

long

long

Exceptions

IOException

Copy(Path, Path, params CopyOption[])

public static Path Copy(Path arg0, Path arg1, params CopyOption[] arg2)

Parameters

arg0 Path

Path

arg1 Path

Path

arg2 CopyOption[]

CopyOption

Returns

Path

Path

Exceptions

IOException

CreateDirectories(Path, params FileAttribute<object>[])

public static Path CreateDirectories(Path arg0, params FileAttribute<object>[] arg1)

Parameters

arg0 Path

Path

arg1 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateDirectory(Path, params FileAttribute<object>[])

public static Path CreateDirectory(Path arg0, params FileAttribute<object>[] arg1)

Parameters

arg0 Path

Path

arg1 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateFile(Path, params FileAttribute<object>[])

public static Path CreateFile(Path arg0, params FileAttribute<object>[] arg1)

Parameters

arg0 Path

Path

arg1 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException
public static Path CreateLink(Path arg0, Path arg1)

Parameters

arg0 Path

Path

arg1 Path

Path

Returns

Path

Path

Exceptions

IOException
public static Path CreateSymbolicLink(Path arg0, Path arg1, params FileAttribute<object>[] arg2)

Parameters

arg0 Path

Path

arg1 Path

Path

arg2 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateTempDirectory(String, params FileAttribute<object>[])

public static Path CreateTempDirectory(String arg0, params FileAttribute<object>[] arg1)

Parameters

arg0 String

String

arg1 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateTempDirectory(Path, String, params FileAttribute<object>[])

public static Path CreateTempDirectory(Path arg0, String arg1, params FileAttribute<object>[] arg2)

Parameters

arg0 Path

Path

arg1 String

String

arg2 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateTempFile(String, String, params FileAttribute<object>[])

public static Path CreateTempFile(String arg0, String arg1, params FileAttribute<object>[] arg2)

Parameters

arg0 String

String

arg1 String

String

arg2 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

CreateTempFile(Path, String, String, params FileAttribute<object>[])

public static Path CreateTempFile(Path arg0, String arg1, String arg2, params FileAttribute<object>[] arg3)

Parameters

arg0 Path

Path

arg1 String

String

arg2 String

String

arg3 FileAttribute<object>[]

FileAttribute

Returns

Path

Path

Exceptions

IOException

Delete(Path)

public static void Delete(Path arg0)

Parameters

arg0 Path

Path

Exceptions

IOException

DeleteIfExists(Path)

public static bool DeleteIfExists(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

Exceptions

IOException

Exists(Path, params LinkOption[])

public static bool Exists(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

bool

bool

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 Path

Path

arg1 int

int

arg2 BiPredicate<Path, BasicFileAttributes>

BiPredicate

arg3 FileVisitOption[]

FileVisitOption

Returns

Stream<Path>

Stream

Exceptions

IOException

GetAttribute(Path, String, params LinkOption[])

public static object GetAttribute(Path arg0, String arg1, params LinkOption[] arg2)

Parameters

arg0 Path

Path

arg1 String

String

arg2 LinkOption[]

LinkOption

Returns

object

object

Exceptions

IOException

GetFileAttributeView<V>(Path, Class, params LinkOption[])

public static V GetFileAttributeView<V>(Path arg0, Class arg1, params LinkOption[] arg2) where V : IFileAttributeView, new()

Parameters

arg0 Path

Path

arg1 Class

Class

arg2 LinkOption[]

LinkOption

Returns

V

V

Type Parameters

V

IFileAttributeView

GetFileStore(Path)

public static FileStore GetFileStore(Path arg0)

Parameters

arg0 Path

Path

Returns

FileStore

FileStore

Exceptions

IOException

GetLastModifiedTime(Path, params LinkOption[])

public static FileTime GetLastModifiedTime(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

FileTime

FileTime

Exceptions

IOException

GetOwner(Path, params LinkOption[])

public static UserPrincipal GetOwner(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

UserPrincipal

UserPrincipal

Exceptions

IOException

GetPosixFilePermissions(Path, params LinkOption[])

public static Set<PosixFilePermission> GetPosixFilePermissions(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

Set<PosixFilePermission>

Set

Exceptions

IOException

IsDirectory(Path, params LinkOption[])

public static bool IsDirectory(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

bool

bool

IsExecutable(Path)

public static bool IsExecutable(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

IsHidden(Path)

public static bool IsHidden(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

Exceptions

IOException

IsReadable(Path)

public static bool IsReadable(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

IsRegularFile(Path, params LinkOption[])

public static bool IsRegularFile(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

bool

bool

IsSameFile(Path, Path)

public static bool IsSameFile(Path arg0, Path arg1)

Parameters

arg0 Path

Path

arg1 Path

Path

Returns

bool

bool

Exceptions

IOException
public static bool IsSymbolicLink(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

IsWritable(Path)

public static bool IsWritable(Path arg0)

Parameters

arg0 Path

Path

Returns

bool

bool

Lines(Path)

public static Stream<String> Lines(Path arg0)

Parameters

arg0 Path

Path

Returns

Stream<String>

Stream

Exceptions

IOException

Lines(Path, Charset)

public static Stream<String> Lines(Path arg0, Charset arg1)

Parameters

arg0 Path

Path

arg1 Charset

Charset

Returns

Stream<String>

Stream

Exceptions

IOException

List(Path)

public static Stream<Path> List(Path arg0)

Parameters

arg0 Path

Path

Returns

Stream<Path>

Stream

Exceptions

IOException

Move(Path, Path, params CopyOption[])

public static Path Move(Path arg0, Path arg1, params CopyOption[] arg2)

Parameters

arg0 Path

Path

arg1 Path

Path

arg2 CopyOption[]

CopyOption

Returns

Path

Path

Exceptions

IOException

NewBufferedReader(Path)

public static BufferedReader NewBufferedReader(Path arg0)

Parameters

arg0 Path

Path

Returns

BufferedReader

BufferedReader

Exceptions

IOException

NewBufferedReader(Path, Charset)

public static BufferedReader NewBufferedReader(Path arg0, Charset arg1)

Parameters

arg0 Path

Path

arg1 Charset

Charset

Returns

BufferedReader

BufferedReader

Exceptions

IOException

NewBufferedWriter(Path, Charset, params OpenOption[])

public static BufferedWriter NewBufferedWriter(Path arg0, Charset arg1, params OpenOption[] arg2)

Parameters

arg0 Path

Path

arg1 Charset

Charset

arg2 OpenOption[]

OpenOption

Returns

BufferedWriter

BufferedWriter

Exceptions

IOException

NewBufferedWriter(Path, params OpenOption[])

public static BufferedWriter NewBufferedWriter(Path arg0, params OpenOption[] arg1)

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

BufferedWriter

BufferedWriter

Exceptions

IOException

NewByteChannel(Path, params OpenOption[])

public static SeekableByteChannel NewByteChannel(Path arg0, params OpenOption[] arg1)

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

SeekableByteChannel

SeekableByteChannel

Exceptions

IOException

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 Path

Path

arg1 Set<Arg1ExtendsJava_Nio_File_OpenOption>

Set

arg2 FileAttribute<object>[]

FileAttribute

Returns

SeekableByteChannel

SeekableByteChannel

Type Parameters

Arg1ExtendsJava_Nio_File_OpenOption

OpenOption

Exceptions

IOException

NewDirectoryStream(Path)

public static DirectoryStream<Path> NewDirectoryStream(Path arg0)

Parameters

arg0 Path

Path

Returns

DirectoryStream<Path>

DirectoryStream

Exceptions

IOException

NewDirectoryStream(Path, String)

public static DirectoryStream<Path> NewDirectoryStream(Path arg0, String arg1)

Parameters

arg0 Path

Path

arg1 String

String

Returns

DirectoryStream<Path>

DirectoryStream

Exceptions

IOException

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 Path

Path

arg1 DirectoryStream.Filter<Arg1objectSuperJava_Nio_File_Path>

DirectoryStream.Filter

Returns

DirectoryStream<Path>

DirectoryStream

Type Parameters

Arg1objectSuperJava_Nio_File_Path

Path

Exceptions

IOException

NewInputStream(Path, params OpenOption[])

public static InputStream NewInputStream(Path arg0, params OpenOption[] arg1)

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

InputStream

InputStream

Exceptions

IOException

NewOutputStream(Path, params OpenOption[])

public static OutputStream NewOutputStream(Path arg0, params OpenOption[] arg1)

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

OutputStream

OutputStream

Exceptions

IOException

NotExists(Path, params LinkOption[])

public static bool NotExists(Path arg0, params LinkOption[] arg1)

Parameters

arg0 Path

Path

arg1 LinkOption[]

LinkOption

Returns

bool

bool

ProbeContentType(Path)

public static String ProbeContentType(Path arg0)

Parameters

arg0 Path

Path

Returns

String

String

Exceptions

IOException

ReadAllBytes(Path)

public static byte[] ReadAllBytes(Path arg0)

Parameters

arg0 Path

Path

Returns

byte[]

byte

Exceptions

IOException

ReadAllLines(Path)

public static List<String> ReadAllLines(Path arg0)

Parameters

arg0 Path

Path

Returns

List<String>

List

Exceptions

IOException

ReadAllLines(Path, Charset)

public static List<String> ReadAllLines(Path arg0, Charset arg1)

Parameters

arg0 Path

Path

arg1 Charset

Charset

Returns

List<String>

List

Exceptions

IOException

ReadAttributes(Path, String, params LinkOption[])

public static Map<String, object> ReadAttributes(Path arg0, String arg1, params LinkOption[] arg2)

Parameters

arg0 Path

Path

arg1 String

String

arg2 LinkOption[]

LinkOption

Returns

Map<String, object>

Map

Exceptions

IOException

ReadAttributes<A>(Path, Class, params LinkOption[])

public static A ReadAttributes<A>(Path arg0, Class arg1, params LinkOption[] arg2) where A : IBasicFileAttributes, new()

Parameters

arg0 Path

Path

arg1 Class

Class

arg2 LinkOption[]

LinkOption

Returns

A

A

Type Parameters

A

IBasicFileAttributes

Exceptions

IOException

ReadString(Path)

public static String ReadString(Path arg0)

Parameters

arg0 Path

Path

Returns

String

String

Exceptions

IOException

ReadString(Path, Charset)

public static String ReadString(Path arg0, Charset arg1)

Parameters

arg0 Path

Path

arg1 Charset

Charset

Returns

String

String

Exceptions

IOException
public static Path ReadSymbolicLink(Path arg0)

Parameters

arg0 Path

Path

Returns

Path

Path

Exceptions

IOException

SetAttribute(Path, String, object, params LinkOption[])

public static Path SetAttribute(Path arg0, String arg1, object arg2, params LinkOption[] arg3)

Parameters

arg0 Path

Path

arg1 String

String

arg2 object

object

arg3 LinkOption[]

LinkOption

Returns

Path

Path

Exceptions

IOException

SetLastModifiedTime(Path, FileTime)

public static Path SetLastModifiedTime(Path arg0, FileTime arg1)

Parameters

arg0 Path

Path

arg1 FileTime

FileTime

Returns

Path

Path

Exceptions

IOException

SetOwner(Path, UserPrincipal)

public static Path SetOwner(Path arg0, UserPrincipal arg1)

Parameters

arg0 Path

Path

arg1 UserPrincipal

UserPrincipal

Returns

Path

Path

Exceptions

IOException

SetPosixFilePermissions(Path, Set<PosixFilePermission>)

public static Path SetPosixFilePermissions(Path arg0, Set<PosixFilePermission> arg1)

Parameters

arg0 Path

Path

arg1 Set<PosixFilePermission>

Set

Returns

Path

Path

Exceptions

IOException

Size(Path)

public static long Size(Path arg0)

Parameters

arg0 Path

Path

Returns

long

long

Exceptions

IOException

Walk(Path, params FileVisitOption[])

public static Stream<Path> Walk(Path arg0, params FileVisitOption[] arg1)

Parameters

arg0 Path

Path

arg1 FileVisitOption[]

FileVisitOption

Returns

Stream<Path>

Stream

Exceptions

IOException

Walk(Path, int, params FileVisitOption[])

public static Stream<Path> Walk(Path arg0, int arg1, params FileVisitOption[] arg2)

Parameters

arg0 Path

Path

arg1 int

int

arg2 FileVisitOption[]

FileVisitOption

Returns

Stream<Path>

Stream

Exceptions

IOException

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 Path

Path

arg1 FileVisitor<Arg1objectSuperJava_Nio_File_Path>

FileVisitor

Returns

Path

Path

Type Parameters

Arg1objectSuperJava_Nio_File_Path

Path

Exceptions

IOException

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 Path

Path

arg1 Set<FileVisitOption>

Set

arg2 int

int

arg3 FileVisitor<Arg3objectSuperJava_Nio_File_Path>

FileVisitor

Returns

Path

Path

Type Parameters

Arg3objectSuperJava_Nio_File_Path

Path

Exceptions

IOException

Write(Path, byte[], params OpenOption[])

public static Path Write(Path arg0, byte[] arg1, params OpenOption[] arg2)

Parameters

arg0 Path

Path

arg1 byte[]

byte

arg2 OpenOption[]

OpenOption

Returns

Path

Path

Exceptions

IOException

WriteString(Path, CharSequence, Charset, params OpenOption[])

public static Path WriteString(Path arg0, CharSequence arg1, Charset arg2, params OpenOption[] arg3)

Parameters

arg0 Path

Path

arg1 CharSequence

CharSequence

arg2 Charset

Charset

arg3 OpenOption[]

OpenOption

Returns

Path

Path

Exceptions

IOException

WriteString(Path, CharSequence, params OpenOption[])

public static Path WriteString(Path arg0, CharSequence arg1, params OpenOption[] arg2)

Parameters

arg0 Path

Path

arg1 CharSequence

CharSequence

arg2 OpenOption[]

OpenOption

Returns

Path

Path

Exceptions

IOException

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 Path

Path

arg1 Iterable<Arg1ExtendsJava_Lang_CharSequence>

Iterable

arg2 Charset

Charset

arg3 OpenOption[]

OpenOption

Returns

Path

Path

Type Parameters

Arg1ExtendsJava_Lang_CharSequence

CharSequence

Exceptions

IOException

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 Path

Path

arg1 Iterable<Arg1ExtendsJava_Lang_CharSequence>

Iterable

arg2 OpenOption[]

OpenOption

Returns

Path

Path

Type Parameters

Arg1ExtendsJava_Lang_CharSequence

CharSequence

Exceptions

IOException