/** * Indicates whether the current context is allowed to read from this file. * * @return {@code true} if this file can be read, {@code false} otherwise. */ public boolean canRead() { return doAccess(R_OK); }
/** * Tests whether or not this process is allowed to execute this file. * Note that this is a best-effort result; the only way to be certain is * to actually attempt the operation. * * @return {@code true} if this file can be executed, {@code false} otherwise. * @since 1.6 */ public boolean canExecute() { return doAccess(X_OK); }
/** * Returns a boolean indicating whether this file can be found on the * underlying file system. * * @return {@code true} if this file exists, {@code false} otherwise. */ public boolean exists() { return doAccess(F_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Tests whether or not this process is allowed to execute this file. * Note that this is a best-effort result; the only way to be certain is * to actually attempt the operation. * * @return {@code true} if this file can be executed, {@code false} otherwise. * @since 1.6 */ public boolean canExecute() { return doAccess(X_OK); }
/** * Tests whether or not this process is allowed to execute this file. * Note that this is a best-effort result; the only way to be certain is * to actually attempt the operation. * * @return {@code true} if this file can be executed, {@code false} otherwise. * @since 1.6 */ public boolean canExecute() { return doAccess(X_OK); }
/** * Returns a boolean indicating whether this file can be found on the * underlying file system. * * @return {@code true} if this file exists, {@code false} otherwise. */ public boolean exists() { return doAccess(F_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Indicates whether the current context is allowed to read from this file. * * @return {@code true} if this file can be read, {@code false} otherwise. */ public boolean canRead() { return doAccess(R_OK); }
/** * Indicates whether the current context is allowed to read from this file. * * @return {@code true} if this file can be read, {@code false} otherwise. */ public boolean canRead() { return doAccess(R_OK); }
/** * Indicates whether the current context is allowed to read from this file. * * @return {@code true} if this file can be read, {@code false} otherwise. */ public boolean canRead() { return doAccess(R_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Returns a boolean indicating whether this file can be found on the * underlying file system. * * @return {@code true} if this file exists, {@code false} otherwise. */ public boolean exists() { return doAccess(F_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Tests whether or not this process is allowed to execute this file. * Note that this is a best-effort result; the only way to be certain is * to actually attempt the operation. * * @return {@code true} if this file can be executed, {@code false} otherwise. * @since 1.6 */ public boolean canExecute() { return doAccess(X_OK); }
/** * Tests whether or not this process is allowed to execute this file. * Note that this is a best-effort result; the only way to be certain is * to actually attempt the operation. * * @return {@code true} if this file can be executed, {@code false} otherwise. * @since 1.6 */ public boolean canExecute() { return doAccess(X_OK); }
/** * Indicates whether the current context is allowed to read from this file. * * @return {@code true} if this file can be read, {@code false} otherwise. */ public boolean canRead() { return doAccess(R_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Indicates whether the current context is allowed to write to this file. * * @return {@code true} if this file can be written, {@code false} * otherwise. */ public boolean canWrite() { return doAccess(W_OK); }
/** * Returns a boolean indicating whether this file can be found on the * underlying file system. * * @return {@code true} if this file exists, {@code false} otherwise. */ public boolean exists() { return doAccess(F_OK); }