Java.IO.File: Method Members

The methods of Java.IO.File are listed below. For a list of all members, see the File Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

CanExecute() : bool
Tests whether or not this process is allowed to execute this file.
CanRead() : bool
Indicates whether the current context is allowed to read from this file.
CanWrite() : bool
Indicates whether the current context is allowed to write to this file.
CompareTo(File) : int
Returns the relative sort ordering of the paths for this file and the file another.
CreateNewFile() : bool
Creates a new, empty file on the file system according to the path information stored in this file.
static
CreateTempFile(string, string) : File
Creates an empty temporary file using the given prefix and suffix as part of the file name.
static
CreateTempFile(string, string, File) : File
Creates an empty temporary file in the given directory using the given prefix and suffix as part of the file name.
Delete() : bool
Deletes this file.
DeleteOnExit()
Schedules this file to be automatically deleted when the VM terminates normally.
Exists() : bool
Returns a boolean indicating whether this file can be found on the underlying file system.
LastModified() : long
Returns the time when this file was last modified, measured in milliseconds since January 1st, 1970, midnight.
Length() : long
Returns the length of this file in bytes.
List() : string[]
Returns an array of strings with the file names in the directory represented by this file.
List(IFilenameFilter) : string[]
Gets a list of the files in the directory represented by this file.
ListAsync() : System.Threading.Tasks.Task<String[]>
Documentation for this section has not yet been entered.
ListAsync(IFilenameFilter) : System.Threading.Tasks.Task<String[]>
Documentation for this section has not yet been entered.
ListFiles() : File[]
Returns an array of files contained in the directory represented by this file.
ListFiles(IFileFilter) : File[]
Gets a list of the files in the directory represented by this file.
ListFiles(IFilenameFilter) : File[]
Gets a list of the files in the directory represented by this file.
ListFilesAsync() : System.Threading.Tasks.Task<File[]>
Documentation for this section has not yet been entered.
ListFilesAsync(IFileFilter) : System.Threading.Tasks.Task<File[]>
Documentation for this section has not yet been entered.
ListFilesAsync(IFilenameFilter) : System.Threading.Tasks.Task<File[]>
Documentation for this section has not yet been entered.
static
ListRoots() : File[]
Returns the file system roots.
static
ListRootsAsync() : System.Threading.Tasks.Task<File[]>
Documentation for this section has not yet been entered.
Mkdir() : bool
Creates the directory named by this file, assuming its parents exist.
Mkdirs() : bool
Creates the directory named by this file, creating missing parent directories if necessary.
RenameTo(File) : bool
Renames this file to newPath.
SetExecutable(bool) : bool
Equivalent to setExecutable(executable, true).
SetExecutable(bool, bool) : bool
Manipulates the execute permissions for the abstract path designated by this file.
SetLastModified(long) : bool
Sets the time this file was last modified, measured in milliseconds since January 1st, 1970, midnight.
SetReadable(bool) : bool
Equivalent to setReadable(readable, true).
SetReadable(bool, bool) : bool
Manipulates the read permissions for the abstract path designated by this file.
SetReadOnly() : bool
Equivalent to setWritable(false, false).
SetWritable(bool) : bool
Equivalent to setWritable(writable, true).
SetWritable(bool, bool) : bool
Manipulates the write permissions for the abstract path designated by this file.
ToURI() : Java.Net.URI
Returns a Uniform Resource Identifier for this file.
ToURL() : Java.Net.URL
Returns a Uniform Resource Locator for this file.