install4j API documentation



com.install4j.api.unix
Interface UnixFileSystem.FileInformation

Enclosing class:
UnixFileSystem

public static interface UnixFileSystem.FileInformation

Holds Unix-specific information about a file.


Method Summary
 java.lang.String getLinkTarget()
          If isLink returns true, this method returns the target file of the link.
 int getMode()
          Get the Unix mode of a file.
 java.lang.String getOwnerInfo()
          Get the owner of a file.
 boolean isLink()
          Return whether the file is a link or not.
 

Method Detail

getMode

int getMode()
Get the Unix mode of a file. To convert this mode to a human-readable octal string, use Integer.toOctalString.

Returns:
the Unix mode

getOwnerInfo

java.lang.String getOwnerInfo()
Get the owner of a file. Depending on the platform, this is either a user name like "user" or a user name followed by a colon and a group name, like "user:group".

Returns:
the owner of the file.

isLink

boolean isLink()
Return whether the file is a link or not.

Returns:
true or false.

getLinkTarget

java.lang.String getLinkTarget()
If isLink returns true, this method returns the target file of the link.

Returns:
the target file if the file is a link or null otherwise.
See Also:
isLink()