true
if and only if this file can be read.
true
if this File can be read, false
otherwise.
@see java.lang.SecurityManager#checkRead(FileDescriptor)
SmbFile
represents can be read. Because any file, directory, or other resource can be read if it exists, this method simply calls the exists
method.
@return true
if the file is read-only
true
if and only if the file specified by thisabstract pathname exists and can be read by the application; false
otherwise
@throws SecurityException If a security manager exists and its {@link java.lang.SecurityManager#checkRead(java.lang.String)}
method denies read access to the file
true
if READ permission is granted for the existing item with the given Path
and/or ItemId
. This method acts as shortcut for {@link #grants(Path,int)} wherepermissions is {@link Permission#READ} and allows to shorten theevaluation time given the fact that a check for READ permissions is considered to be the most frequent test.null
it is left to the implementation which parameter to use.n
@param itemPath The path to the item or null
if the IDshould be used to determine the READ permission.
@param itemId The itemId or null
if the path should beused to determine the READ permission.
@return true
if the READ permission is granted.
@throws RepositoryException If no item exists with the specified path oritemId or if some other error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|