| Modifier and Type | Field and Description |
|---|---|
| private final char | |
| private final char | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| private native String | |
| public boolean | checkAccess(File f, int access)
Implements abstract java. Check whether the file or directory denoted by the given abstract pathname may be accessed by this process. |
| private native boolean | |
| public int | compare(File f1, File f2)
Implements abstract java. Compare two abstract pathnames lexicographically. |
| public boolean | createDirectory(File f)
Implements abstract java. Create a new directory denoted by the given abstract pathname,
returning |
| private native boolean | |
| public boolean | createFileExclusively(String path)
Implements abstract java. Create a new empty file with the given pathname. |
| private native boolean | |
| public boolean | delete(File f)
Implements abstract java. Delete the file or directory denoted by the given abstract pathname,
returning |
| private native boolean | |
| public String | fromURIPath(String path)
Implements abstract java. Post-process the given URI path string if necessary. |
| public int | getBooleanAttributes(File f)
Implements abstract java. Return the simple boolean attributes for the file or directory denoted by the given abstract pathname, or zero if it does not exist or some other I/O error occurs. |
| private native int | |
| public String | getDefaultParent()
Implements abstract java. Return the parent pathname string to be used when the parent-directory argument in one of the two-argument File constructors is the empty pathname. |
| private File | |
| public long | getLastModifiedTime(File f)
Implements abstract java. Return the time at which the file or directory denoted by the given abstract pathname was last modified, or zero if it does not exist or some other I/O error occurs. |
| private native long | |
| public long | getLength(File f)
Implements abstract java. Return the length in bytes of the file denoted by the given abstract pathname, or zero if it does not exist, is a directory, or some other I/O error occurs. |
| private native long | |
| public int | getNameMax(String path)
Implements abstract java. Retrieve the maximum length of a component of a file path. |
| private native long | |
| private String | |
| public char | getPathSeparator()
Implements abstract java. Return the local filesystem's path-separator character. |
| public char | getSeparator()
Implements abstract java. Return the local filesystem's name-separator character. |
| public long | |
| private native long | |
| public boolean | hasBooleanAttributes(File f, int attributes)
Overrides java. Checks if all the given boolean attributes are true for the file or directory denoted by the given abstract pathname. |
| public int | hashCode(File f)
Implements abstract java. Compute the hash code of an abstract pathname. |
| private static native void | |
| public boolean | isAbsolute(File f)
Implements abstract java. Tell whether or not the given abstract pathname is absolute. |
| private static int | |
| public boolean | isInvalid(File f)
Implements abstract java. Tell whether the given abstract pathname is invalid. |
| public String[] | list(File f)
Implements abstract java. List the elements of the directory denoted by the given abstract pathname. |
| private native String[] | |
| public File[] | |
| private String | |
| public String | normalize(String pathname)
Implements abstract java. Convert the given pathname string to normal form. |
| public int | prefixLength(String pathname)
Implements abstract java. Compute the length of this pathname string's prefix. |
| public boolean | rename(File f1, File f2)
Implements abstract java. Rename the file or directory denoted by the first abstract pathname to
the second abstract pathname, returning |
| private native boolean | |
| public String | resolve(String parent, String child)
Implements abstract java. Resolve the child pathname string against the parent. |
| public String | resolve(File f)
Implements abstract java. Resolve the given abstract pathname into absolute form. |
| public boolean | setLastModifiedTime(File f, long time)
Implements abstract java. Set the last-modified time of the file or directory denoted by the
given abstract pathname, returning |
| private native boolean | |
| public boolean | setPermission(File f, int access, boolean enable, boolean owneronly)
Implements abstract java. Set on or off the access permission (to owner only or to all) to the file or directory denoted by the given abstract pathname, based on the parameters enable, access and oweronly. |
| private native boolean | |
| public boolean | setReadOnly(File f)
Implements abstract java. Mark the file or directory denoted by the given abstract pathname as
read-only, returning |
| private native boolean | |
| private static String |
| colon | back to summary |
|---|---|
| private final char colon | |
| slash | back to summary |
|---|---|
| private final char slash | |
| userDir | back to summary |
|---|---|
| private final String userDir | |
| UnixFileSystem | back to summary |
|---|---|
| pack-priv UnixFileSystem() | |
| canonicalize | back to summary |
|---|---|
| public String canonicalize(String path) throws IOException Implements abstract java.
| |
| canonicalize0 | back to summary |
|---|---|
| private native String canonicalize0(String path) throws IOException | |
| checkAccess | back to summary |
|---|---|
| public boolean checkAccess(File f, int access) Implements abstract java. Doc from java. Check whether the file or directory denoted by the given abstract pathname may be accessed by this process. The second argument specifies which access, ACCESS_READ, ACCESS_WRITE or ACCESS_EXECUTE, to check. Return false if access is denied or an I/O error occurs
| |
| checkAccess0 | back to summary |
|---|---|
| private native boolean checkAccess0(File f, int access) | |
| compare | back to summary |
|---|---|
| public int compare(File f1, File f2) Implements abstract java. Doc from java. Compare two abstract pathnames lexicographically.
| |
| createDirectory | back to summary |
|---|---|
| public boolean createDirectory(File f) Implements abstract java. Doc from java. Create a new directory denoted by the given abstract pathname,
returning
| |
| createDirectory0 | back to summary |
|---|---|
| private native boolean createDirectory0(File f) | |
| createFileExclusively | back to summary |
|---|---|
| public boolean createFileExclusively(String path) throws IOException Implements abstract java. Doc from java. Create a new empty file with the given pathname. Return
| |
| createFileExclusively0 | back to summary |
|---|---|
| private native boolean createFileExclusively0(String path) throws IOException | |
| delete | back to summary |
|---|---|
| public boolean delete(File f) Implements abstract java. Doc from java. Delete the file or directory denoted by the given abstract pathname,
returning
| |
| delete0 | back to summary |
|---|---|
| private native boolean delete0(File f) | |
| fromURIPath | back to summary |
|---|---|
| public String fromURIPath(String path) Implements abstract java. Doc from java. Post-process the given URI path string if necessary. This is used on win32, e.g., to transform "/c:/foo" into "c:/foo". The path string still has slash separators; code in the File class will translate them after this method returns.
| |
| getBooleanAttributes | back to summary |
|---|---|
| public int getBooleanAttributes(File f) Implements abstract java. Doc from java. Return the simple boolean attributes for the file or directory denoted by the given abstract pathname, or zero if it does not exist or some other I/O error occurs.
| |
| getBooleanAttributes0 | back to summary |
|---|---|
| private native int getBooleanAttributes0(File f) | |
| getDefaultParent | back to summary |
|---|---|
| public String getDefaultParent() Implements abstract java. Doc from java. Return the parent pathname string to be used when the parent-directory argument in one of the two-argument File constructors is the empty pathname.
| |
| getFileForSysCalls | back to summary |
|---|---|
| private File getFileForSysCalls(File file) | |
| getLastModifiedTime | back to summary |
|---|---|
| public long getLastModifiedTime(File f) Implements abstract java. Doc from java. Return the time at which the file or directory denoted by the given abstract pathname was last modified, or zero if it does not exist or some other I/O error occurs.
| |
| getLastModifiedTime0 | back to summary |
|---|---|
| private native long getLastModifiedTime0(File f) | |
| getLength | back to summary |
|---|---|
| public long getLength(File f) Implements abstract java. Doc from java. Return the length in bytes of the file denoted by the given abstract pathname, or zero if it does not exist, is a directory, or some other I/O error occurs.
| |
| getLength0 | back to summary |
|---|---|
| private native long getLength0(File f) | |
| getNameMax | back to summary |
|---|---|
| public int getNameMax(String path) Implements abstract java. Doc from java. Retrieve the maximum length of a component of a file path.
| |
| getNameMax0 | back to summary |
|---|---|
| private native long getNameMax0(String path) | |
| getPathForSysCalls | back to summary |
|---|---|
| private String getPathForSysCalls(String path) | |
| getPathSeparator | back to summary |
|---|---|
| public char getPathSeparator() Implements abstract java. Doc from java. Return the local filesystem's path-separator character.
| |
| getSeparator | back to summary |
|---|---|
| public char getSeparator() Implements abstract java. Doc from java. Return the local filesystem's name-separator character.
| |
| getSpace | back to summary |
|---|---|
| public long getSpace(File f, int t) Implements abstract java.
| |
| getSpace0 | back to summary |
|---|---|
| private native long getSpace0(File f, int t) | |
| hasBooleanAttributes | back to summary |
|---|---|
| public boolean hasBooleanAttributes(File f, int attributes) Overrides java. Doc from java. Checks if all the given boolean attributes are true for the file or directory denoted by the given abstract pathname. False if it does not exist or some other I/O error occurs.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode(File f) Implements abstract java. Doc from java. Compute the hash code of an abstract pathname.
| |
| initIDs | back to summary |
|---|---|
| private static native void initIDs() | |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute(File f) Implements abstract java. Doc from java. Tell whether or not the given abstract pathname is absolute.
| |
| isHidden | back to summary |
|---|---|
| private static int isHidden(File f) | |
| isInvalid | back to summary |
|---|---|
| public boolean isInvalid(File f) Implements abstract java. Doc from java. Tell whether the given abstract pathname is invalid.
| |
| list | back to summary |
|---|---|
| public String[] list(File f) Implements abstract java. Doc from java. List the elements of the directory denoted by the given abstract
pathname. Return an array of strings naming the elements of the
directory if successful; otherwise, return
| |
| list0 | back to summary |
|---|---|
| private native String[] list0(File f) | |
| listRoots | back to summary |
|---|---|
| public File[] listRoots() Implements abstract java. Doc from java. List the available filesystem roots.
| |
| normalize | back to summary |
|---|---|
| private String normalize(String pathname, int off) Normalize the given pathname, starting at the given offset; everything before off is already normal, and there's at least one duplicate or trailing slash to be removed | |
| normalize | back to summary |
|---|---|
| public String normalize(String pathname) Implements abstract java. Doc from java. Convert the given pathname string to normal form. If the string is already in normal form then it is simply returned.
| |
| prefixLength | back to summary |
|---|---|
| public int prefixLength(String pathname) Implements abstract java. Doc from java. Compute the length of this pathname string's prefix. The pathname string must be in normal form.
| |
| rename | back to summary |
|---|---|
| public boolean rename(File f1, File f2) Implements abstract java. Doc from java. Rename the file or directory denoted by the first abstract pathname to
the second abstract pathname, returning
| |
| rename0 | back to summary |
|---|---|
| private native boolean rename0(File f1, File f2) | |
| resolve | back to summary |
|---|---|
| public String resolve(String parent, String child) Implements abstract java. Doc from java. Resolve the child pathname string against the parent. Both strings must be in normal form, and the result will be in normal form.
| |
| resolve | back to summary |
|---|---|
| public String resolve(File f) Implements abstract java. Doc from java. Resolve the given abstract pathname into absolute form. Invoked by the getAbsolutePath and getCanonicalPath methods in the File class.
| |
| setLastModifiedTime | back to summary |
|---|---|
| public boolean setLastModifiedTime(File f, long time) Implements abstract java. Doc from java. Set the last-modified time of the file or directory denoted by the
given abstract pathname, returning
| |
| setLastModifiedTime0 | back to summary |
|---|---|
| private native boolean setLastModifiedTime0(File f, long time) | |
| setPermission | back to summary |
|---|---|
| public boolean setPermission(File f, int access, boolean enable, boolean owneronly) Implements abstract java. Doc from java. Set on or off the access permission (to owner only or to all) to the file or directory denoted by the given abstract pathname, based on the parameters enable, access and oweronly.
| |
| setPermission0 | back to summary |
|---|---|
| private native boolean setPermission0(File f, int access, boolean enable, boolean owneronly) | |
| setReadOnly | back to summary |
|---|---|
| public boolean setReadOnly(File f) Implements abstract java. Doc from java. Mark the file or directory denoted by the given abstract pathname as
read-only, returning
| |
| setReadOnly0 | back to summary |
|---|---|
| private native boolean setReadOnly0(File f) | |
| trimSeparator | back to summary |
|---|---|
| private static String trimSeparator(String s) | |