public static interface AbstractFileSystem.SymlinkInfo extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalName(String name)
Get canonical file name (resolve all symbolic links).
|
boolean |
isSymbolicLink(String name)
Check whether a file represents a symbolic link.
|
String |
readSymbolicLink(String name)
Read symbolic link.
|
boolean isSymbolicLink(String name) throws IOException
name
- Name of the file.IOException
- If some I/O problem occurs.AbstractFileSystem.SymlinkInfo.readSymbolicLink(java.lang.String)
,
AbstractFileSystem.SymlinkInfo.getCanonicalName(java.lang.String)
String readSymbolicLink(String name) throws IOException
IllegalArgumentException
can be thrown.
This method does not perform any normalization. If the target of
symbolic link is defined using relative path, this relative path will
be returned.name
- Name of the file.name
does not represent symbolic
link.IOException
- If some I/O problem occurs.AbstractFileSystem.SymlinkInfo.isSymbolicLink(java.lang.String)
String getCanonicalName(String name) throws IOException
name
- Name of the file.name
and
where all symbolic links are resolved.IOException
- If some I/O problem occurs.