f
does not exist
@throws AccessControlException if access denied
@throws IOException If an IO Error occurredExceptions applicable to file systems accessed over RPC:
@throws RpcClientException If an exception occurred in the RPC client
@throws RpcServerException If an exception occurred in the RPC server
@throws UnexpectedServerException If server implementation throwsundeclared exception to RPC server RuntimeExceptions:
@throws InvalidPathException If path f
is not valid
IPath
object potentially containing a variable reference as its first segment, replacing the variable reference (if any) with the variable's value (which is a concrete absolute path). If the given path is absolute or has a non- null
device then no variable substitution is done and that path is returned as is. If the given path is relative and has a null
device, but the first segment does not correspond to a defined variable, then the path is returned as is. If the given path is null
then null
will be returned. In all other cases the result will be non-null
.
For example, consider the following collection of path variables:
The following paths would be resolved as:
c:/bin => c:/bin
c:TEMP => c:TEMP
/TEMP => /TEMP
TEMP => c:/temp
TEMP/foo => c:/temp/foo
BACKUP => /tmp/backup
BACKUP/bar.txt => /tmp/backup/bar.txt
SOMEPATH/foo => SOMEPATH/foo
@param path the path to be resolved @return the resolved path ornull
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|