Class File
public class File : JVMBridgeBase<File>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<File>File
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<File>.SExecuteWithSignature<TReturn>(Type, IJavaType, string, string, params object[])JVMBridgeBase<File>.IsAssignableFrom(IJavaType)JVMBridgeBase<File>.IsAssignableFrom<T>()JVMBridgeBase<File>.Execute<T>(params T[])JVMBridgeBase<File>.DynBridgeClazzJVMBridgeBase<File>.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
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
File(String)
public File(String arg0)
Parameters
File(String, String)
public File(String arg0, String arg1)
Parameters
File(URI)
public File(URI arg0)
Parameters
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
AbsolutePath
public String AbsolutePath { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CanonicalFile
public File CanonicalFile { get; }
Property Value
CanonicalPath
public String CanonicalPath { get; }
Property Value
FreeSpace
public long FreeSpace { 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
Name
public String Name { get; }
Property Value
Parent
public String Parent { get; }
Property Value
ParentFile
public File ParentFile { get; }
Property Value
Path
public String Path { get; }
Property Value
TotalSpace
public long TotalSpace { get; }
Property Value
UsableSpace
public long UsableSpace { get; }
Property Value
pathSeparator
public static String pathSeparator { get; }
Property Value
pathSeparatorChar
public static char pathSeparatorChar { get; }
Property Value
separator
public static String separator { get; }
Property Value
separatorChar
public static char separatorChar { get; }
Property Value
Methods
CanExecute()
public bool CanExecute()
Returns
CanRead()
public bool CanRead()
Returns
CanWrite()
public bool CanWrite()
Returns
CompareTo(File)
public int CompareTo(File arg0)
Parameters
Returns
CompareTo(object)
public int CompareTo(object arg0)
Parameters
Returns
CreateNewFile()
public bool CreateNewFile()
Returns
Exceptions
CreateTempFile(String, String)
public static File CreateTempFile(String arg0, String arg1)
Parameters
Returns
Exceptions
CreateTempFile(String, String, File)
public static File CreateTempFile(String arg0, String arg1, File arg2)
Parameters
Returns
Exceptions
Delete()
public bool Delete()
Returns
DeleteOnExit()
public void DeleteOnExit()
Exists()
public bool Exists()
Returns
IsAbsolute()
public bool IsAbsolute()
Returns
IsDirectory()
public bool IsDirectory()
Returns
IsFile()
public bool IsFile()
Returns
IsHidden()
public bool IsHidden()
Returns
LastModified()
public long LastModified()
Returns
Length()
public long Length()
Returns
List()
public String[] List()
Returns
List(FilenameFilter)
public String[] List(FilenameFilter arg0)
Parameters
Returns
ListFiles()
public File[] ListFiles()
Returns
ListFiles(FileFilter)
public File[] ListFiles(FileFilter arg0)
Parameters
arg0
FileFilter
Returns
ListFiles(FilenameFilter)
public File[] ListFiles(FilenameFilter arg0)
Parameters
Returns
ListRoots()
public static File[] ListRoots()
Returns
Mkdir()
public bool Mkdir()
Returns
Mkdirs()
public bool Mkdirs()
Returns
RenameTo(File)
public bool RenameTo(File arg0)
Parameters
Returns
SetExecutable(bool)
public bool SetExecutable(bool arg0)
Parameters
Returns
SetExecutable(bool, bool)
public bool SetExecutable(bool arg0, bool arg1)
Parameters
Returns
SetLastModified(long)
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/File.html#setLastModified(long)
public bool SetLastModified(long arg0)
Parameters
Returns
SetReadOnly()
public bool SetReadOnly()
Returns
SetReadable(bool)
public bool SetReadable(bool arg0)
Parameters
Returns
SetReadable(bool, bool)
public bool SetReadable(bool arg0, bool arg1)
Parameters
Returns
SetWritable(bool)
public bool SetWritable(bool arg0)
Parameters
Returns
SetWritable(bool, bool)
public bool SetWritable(bool arg0, bool arg1)
Parameters
Returns
ToPath()
public Path ToPath()
Returns
ToURI()
public URI ToURI()
Returns
Operators
implicit operator Serializable(File)
Converter from File to Serializable
public static implicit operator Serializable(File t)
Parameters
t
File
Returns
implicit operator Comparable(File)
Converter from File to Comparable
public static implicit operator Comparable(File t)
Parameters
t
File