public class FileAttributes extends Object implements PlexusIoResourceAttributes
UNKNOWN_OCTAL_MODE| Constructor and Description |
|---|
FileAttributes(File file,
Map<Integer,String> userCache,
Map<Integer,String> groupCache) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculatePosixOctalMode() |
Integer |
getGroupId()
Gets the unix group id.
|
String |
getGroupName()
The group name.
|
int |
getOctalMode()
Octal mode attributes.
|
String |
getOctalModeString() |
Integer |
getUserId()
Gets the unix user id.
|
String |
getUserName()
Returns the user name of the user owning the file.
|
boolean |
hasGroupId() |
boolean |
hasUserId() |
boolean |
isGroupExecutable() |
boolean |
isGroupReadable() |
boolean |
isGroupWritable() |
boolean |
isOwnerExecutable() |
boolean |
isOwnerReadable() |
boolean |
isOwnerWritable() |
boolean |
isSymbolicLink() |
boolean |
isWorldExecutable() |
boolean |
isWorldReadable() |
boolean |
isWorldWritable() |
String |
toString() |
static PlexusIoResourceAttributes |
uncached(File file) |
@Nonnull public static PlexusIoResourceAttributes uncached(@Nonnull File file) throws IOException
IOException@Nullable public Integer getGroupId()
PlexusIoResourceAttributesgetGroupId in interface PlexusIoResourceAttributespublic boolean hasGroupId()
public boolean hasUserId()
@Nullable public String getGroupName()
PlexusIoResourceAttributesgetGroupName in interface PlexusIoResourceAttributespublic Integer getUserId()
PlexusIoResourceAttributesgetUserId in interface PlexusIoResourceAttributespublic String getUserName()
PlexusIoResourceAttributesgetUserName in interface PlexusIoResourceAttributespublic boolean isGroupExecutable()
isGroupExecutable in interface PlexusIoResourceAttributespublic boolean isGroupReadable()
isGroupReadable in interface PlexusIoResourceAttributespublic boolean isGroupWritable()
isGroupWritable in interface PlexusIoResourceAttributespublic boolean isOwnerExecutable()
isOwnerExecutable in interface PlexusIoResourceAttributespublic boolean isOwnerReadable()
isOwnerReadable in interface PlexusIoResourceAttributespublic boolean isOwnerWritable()
isOwnerWritable in interface PlexusIoResourceAttributespublic boolean isWorldExecutable()
isWorldExecutable in interface PlexusIoResourceAttributespublic boolean isWorldReadable()
isWorldReadable in interface PlexusIoResourceAttributespublic boolean isWorldWritable()
isWorldWritable in interface PlexusIoResourceAttributespublic int getOctalMode()
PlexusIoResourceAttributesPlexusIoResourceAttributes.UNKNOWN_OCTAL_MODE if unsupported on current file/file systemgetOctalMode in interface PlexusIoResourceAttributespublic int calculatePosixOctalMode()
public String getOctalModeString()
public boolean isSymbolicLink()
isSymbolicLink in interface PlexusIoResourceAttributesCopyright © 2001–2017 Codehaus Plexus. All rights reserved.