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