Table of Contents

Class File

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

File()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public File()

File(File, String)

public File(File arg0, String arg1)

Parameters

arg0 File

File

arg1 String

String

File(String)

public File(String arg0)

Parameters

arg0 String

String

File(String, String)

public File(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

File(URI)

public File(URI arg0)

Parameters

arg0 URI

URI

File(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 File(params object[] args)

Parameters

args object[]

Properties

AbsoluteFile

public File AbsoluteFile { get; }

Property Value

File

AbsolutePath

public String AbsolutePath { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CanonicalFile

public File CanonicalFile { get; }

Property Value

File

CanonicalPath

public String CanonicalPath { get; }

Property Value

String

FreeSpace

public long FreeSpace { get; }

Property Value

long

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

Name

public String Name { get; }

Property Value

String

Parent

public String Parent { get; }

Property Value

String

ParentFile

public File ParentFile { get; }

Property Value

File

Path

public String Path { get; }

Property Value

String

TotalSpace

public long TotalSpace { get; }

Property Value

long

UsableSpace

public long UsableSpace { get; }

Property Value

long

pathSeparator

public static String pathSeparator { get; }

Property Value

String

pathSeparatorChar

public static char pathSeparatorChar { get; }

Property Value

char

separator

public static String separator { get; }

Property Value

String

separatorChar

public static char separatorChar { get; }

Property Value

char

Methods

CanExecute()

public bool CanExecute()

Returns

bool

bool

CanRead()

public bool CanRead()

Returns

bool

bool

CanWrite()

public bool CanWrite()

Returns

bool

bool

CompareTo(File)

public int CompareTo(File arg0)

Parameters

arg0 File

File

Returns

int

int

CompareTo(object)

public int CompareTo(object arg0)

Parameters

arg0 object

object

Returns

int

int

CreateNewFile()

public bool CreateNewFile()

Returns

bool

bool

Exceptions

IOException

CreateTempFile(String, String)

public static File CreateTempFile(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

File

File

Exceptions

IOException

CreateTempFile(String, String, File)

public static File CreateTempFile(String arg0, String arg1, File arg2)

Parameters

arg0 String

String

arg1 String

String

arg2 File

File

Returns

File

File

Exceptions

IOException

Delete()

public bool Delete()

Returns

bool

bool

DeleteOnExit()

public void DeleteOnExit()

Exists()

public bool Exists()

Returns

bool

bool

IsAbsolute()

public bool IsAbsolute()

Returns

bool

bool

IsDirectory()

public bool IsDirectory()

Returns

bool

bool

IsFile()

public bool IsFile()

Returns

bool

bool

IsHidden()

public bool IsHidden()

Returns

bool

bool

LastModified()

public long LastModified()

Returns

long

long

Length()

public long Length()

Returns

long

long

List()

public String[] List()

Returns

String[]

String

List(FilenameFilter)

public String[] List(FilenameFilter arg0)

Parameters

arg0 FilenameFilter

FilenameFilter

Returns

String[]

String

ListFiles()

public File[] ListFiles()

Returns

File[]

File

ListFiles(FileFilter)

public File[] ListFiles(FileFilter arg0)

Parameters

arg0 FileFilter

FileFilter

Returns

File[]

File

ListFiles(FilenameFilter)

public File[] ListFiles(FilenameFilter arg0)

Parameters

arg0 FilenameFilter

FilenameFilter

Returns

File[]

File

ListRoots()

public static File[] ListRoots()

Returns

File[]

File

Mkdir()

public bool Mkdir()

Returns

bool

bool

Mkdirs()

public bool Mkdirs()

Returns

bool

bool

RenameTo(File)

public bool RenameTo(File arg0)

Parameters

arg0 File

File

Returns

bool

bool

SetExecutable(bool)

public bool SetExecutable(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

SetExecutable(bool, bool)

public bool SetExecutable(bool arg0, bool arg1)

Parameters

arg0 bool

bool

arg1 bool

bool

Returns

bool

bool

SetLastModified(long)

public bool SetLastModified(long arg0)

Parameters

arg0 long

long

Returns

bool

bool

SetReadOnly()

public bool SetReadOnly()

Returns

bool

bool

SetReadable(bool)

public bool SetReadable(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

SetReadable(bool, bool)

public bool SetReadable(bool arg0, bool arg1)

Parameters

arg0 bool

bool

arg1 bool

bool

Returns

bool

bool

SetWritable(bool)

public bool SetWritable(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

SetWritable(bool, bool)

public bool SetWritable(bool arg0, bool arg1)

Parameters

arg0 bool

bool

arg1 bool

bool

Returns

bool

bool

ToPath()

public Path ToPath()

Returns

Path

Path

ToURI()

public URI ToURI()

Returns

URI

URI

Operators

implicit operator Serializable(File)

Converter from File to Serializable

public static implicit operator Serializable(File t)

Parameters

t File

Returns

Serializable

implicit operator Comparable(File)

Converter from File to Comparable

public static implicit operator Comparable(File t)

Parameters

t File

Returns

Comparable