Deprecated
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final JRubyNonExistentFile | NOT_EXIST
References Deprecated
JRubyNonExistentFile is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static File | createTempFile(String
The prefix string to be used in generating the file's
name; must be at least three characters long prefix, String The suffix string to be used in generating the file's
name; may be suffix, File null, in which case the
suffix ".tmp" will be usedThe directory in which the file is to be created, or
directory)null if the default temporary-file
directory is to be usedHides org. Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name. |
| public static File | createTempFile(String
The prefix string to be used in generating the file's
name; must be at least three characters long prefix, String The suffix string to be used in generating the file's
name; may be suffix)null, in which case the
suffix ".tmp" will be usedHides org. Creates an empty file in the default temporary-file directory, using the given prefix and suffix to generate its name. |
| public boolean | exists()
Overrides jnr. Tests whether the file or directory denoted by this abstract pathname exists. |
| public File | getAbsoluteFile()
Overrides org. Returns the absolute form of this abstract pathname. |
| public String | getAbsolutePath()
Overrides org. Returns the absolute pathname string of this abstract pathname. |
| public File | getCanonicalFile()
Overrides org. Returns the canonical form of this abstract pathname. |
| public String | getCanonicalPath()
Overrides org. Returns the canonical pathname string of this abstract pathname. |
| public String | getParent()
Overrides org. Returns the pathname string of this abstract pathname's parent, or
|
| public File | getParentFile()
Overrides org. Returns the abstract pathname of this abstract pathname's parent,
or |
| public String | getPath()
Overrides org. Converts this abstract pathname into a pathname string. |
| public boolean | isDirectory()
Overrides jnr. Tests whether the file denoted by this abstract pathname is a directory. |
| public String[] | list(FilenameFilter
A filename filter filter)Overrides org. Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
| public File[] | listFiles()
Overrides org. Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname. |
| public File[] | listFiles(final FileFilter
A file filter filter)Overrides org. Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
| public File[] | listFiles(final FilenameFilter
A filename filter filter)Overrides org. Returns an array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter. |
| public static File[] | |
| public String | toString()
Overrides org. Returns the pathname string of this abstract pathname. |
| NOT_EXIST | back to summary |
|---|---|
| pack-priv static final JRubyNonExistentFile NOT_EXIST
References Deprecated
See corresponding docs for further information. | |
| JRubyNonExistentFile | back to summary |
|---|---|
| private JRubyNonExistentFile() | |
| createTempFile | back to summary |
|---|---|
| public static File createTempFile(String prefix, String suffix, File directory) throws IOException Hides org. Doc from java. Creates a new empty file in the specified directory, using the given prefix and suffix strings to generate its name. If this method returns successfully then it is guaranteed that:
deleteOnExit method.
The To create the new file, the prefix and the suffix may first be
adjusted to fit the limitations of the underlying platform. If the
prefix is too long then it will be truncated, but its first three
characters will always be preserved. If the suffix is too long then it
too will be truncated, but if it begins with a period character
( If a file with the generated name cannot be created by the
underlying platform, then an If the If the
| |
| createTempFile | back to summary |
|---|---|
| public static File createTempFile(String prefix, String suffix) throws IOException Hides org. Doc from java. Creates an empty file in the default temporary-file directory, using
the given prefix and suffix to generate its name. Invoking this method
is equivalent to invoking The
| |
| exists | back to summary |
|---|---|
| public boolean exists() Overrides jnr. Doc from java. Tests whether the file or directory denoted by this abstract pathname exists.
| |
| getAbsoluteFile | back to summary |
|---|---|
| public File getAbsoluteFile() Overrides org. Doc from java. Returns the absolute form of this abstract pathname. Equivalent to
| |
| getAbsolutePath | back to summary |
|---|---|
| public String getAbsolutePath() Overrides org. Doc from java. Returns the absolute pathname string of this abstract pathname. If this abstract pathname is already absolute, then the pathname
string is simply returned as if by the | |
| getCanonicalFile | back to summary |
|---|---|
| public File getCanonicalFile() throws IOException Overrides org. Doc from java. Returns the canonical form of this abstract pathname. Equivalent to
| |
| getCanonicalPath | back to summary |
|---|---|
| public String getCanonicalPath() throws IOException Overrides org. Doc from java. Returns the canonical pathname string of this abstract pathname. A canonical pathname is both absolute and unique. The precise
definition of canonical form is system-dependent. This method first
converts this pathname to absolute form if necessary, as if by invoking the
Every pathname that denotes an existing file or directory has a unique canonical form. Every pathname that denotes a nonexistent file or directory also has a unique canonical form. The canonical form of the pathname of a nonexistent file or directory may be different from the canonical form of the same pathname after the file or directory is created. Similarly, the canonical form of the pathname of an existing file or directory may be different from the canonical form of the same pathname after the file or directory is deleted.
| |
| getParent | back to summary |
|---|---|
| public String getParent() Overrides org. Doc from java. Returns the pathname string of this abstract pathname's parent, or
The parent of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory. | |
| getParentFile | back to summary |
|---|---|
| public File getParentFile() Overrides org. Doc from java. Returns the abstract pathname of this abstract pathname's parent,
or The parent of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory. | |
| getPath | back to summary |
|---|---|
| public String getPath() Overrides org. Doc from java. Converts this abstract pathname into a pathname string. The resulting
string uses the | |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Overrides jnr. Doc from java. Tests whether the file denoted by this abstract pathname is a directory. Where it is required to distinguish an I/O exception from the case
that the file is not a directory, or where several attributes of the
same file are required at the same time, then the
| |
| list | back to summary |
|---|---|
| public String[] list(FilenameFilter filter) Overrides org. Doc from java. Returns an array of strings naming the files and directories in the
directory denoted by this abstract pathname that satisfy the specified
filter. The behavior of this method is the same as that of the
| |
| listFiles | back to summary |
|---|---|
| public File[] listFiles() Overrides org. Doc from java. Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname. If this abstract pathname does not denote a directory, then this
method returns There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order. Note that the | |
| listFiles | back to summary |
|---|---|
| public File[] listFiles(final FileFilter filter) Overrides org. Doc from java. Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter. The behavior of this method is the same
as that of the
| |
| listFiles | back to summary |
|---|---|
| public File[] listFiles(final FilenameFilter filter) Overrides org. Doc from java. Returns an array of abstract pathnames denoting the files and
directories in the directory denoted by this abstract pathname that
satisfy the specified filter. The behavior of this method is the same
as that of the
| |
| listRoots | back to summary |
|---|---|
| public static File[] listRoots() Hides org. Doc from java. List the available filesystem roots. A particular Java platform may support zero or more
hierarchically-organized file systems. Each file system has a
This method returns an array of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns the pathname string of this abstract pathname. This is just the
string returned by the | |