public class FileAttributes extends Object implements PlexusIoResourceAttributes
| Modifier and Type | Field and Description |
|---|---|
protected static int |
INDEX_GROUP_EXECUTE |
protected static int |
INDEX_GROUP_READ |
protected static int |
INDEX_GROUP_WRITE |
protected static int |
INDEX_OWNER_EXECUTE |
protected static int |
INDEX_OWNER_READ |
protected static int |
INDEX_OWNER_WRITE |
protected static int |
INDEX_WORLD_EXECUTE |
protected static int |
INDEX_WORLD_READ |
protected static int |
INDEX_WORLD_WRITE |
protected static char |
VALUE_DISABLED_MODE |
protected static char |
VALUE_EXECUTABLE_MODE |
protected static char |
VALUE_READABLE_MODE |
protected static char |
VALUE_WRITABLE_MODE |
| Constructor and Description |
|---|
FileAttributes(int mode) |
FileAttributes(String lsMOdeLine) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getGroupId()
Gets the unix group id.
|
String |
getGroupName()
The group name.
|
protected char[] |
getLsModeParts() |
int |
getOctalMode() |
String |
getOctalModeString() |
Integer |
getUserId()
Gets the unix user id.
|
String |
getUserName()
Returns the user name of the user owning the file.
|
boolean |
isGroupExecutable() |
boolean |
isGroupReadable() |
boolean |
isGroupWritable() |
boolean |
isOwnerExecutable() |
boolean |
isOwnerReadable() |
boolean |
isOwnerWritable() |
boolean |
isSymbolicLink() |
boolean |
isWorldExecutable() |
boolean |
isWorldReadable() |
boolean |
isWorldWritable() |
PlexusIoResourceAttributes |
setGroupId(Integer gid) |
PlexusIoResourceAttributes |
setGroupName(String name) |
PlexusIoResourceAttributes |
setLsModeline(String modeLine) |
PlexusIoResourceAttributes |
setUserId(Integer uid) |
PlexusIoResourceAttributes |
setUserName(String name) |
String |
toString() |
protected static final char VALUE_DISABLED_MODE
protected static final char VALUE_WRITABLE_MODE
protected static final char VALUE_READABLE_MODE
protected static final char VALUE_EXECUTABLE_MODE
protected static final int INDEX_WORLD_EXECUTE
protected static final int INDEX_WORLD_WRITE
protected static final int INDEX_WORLD_READ
protected static final int INDEX_GROUP_EXECUTE
protected static final int INDEX_GROUP_WRITE
protected static final int INDEX_GROUP_READ
protected static final int INDEX_OWNER_EXECUTE
protected static final int INDEX_OWNER_WRITE
protected static final int INDEX_OWNER_READ
public FileAttributes(int mode)
public FileAttributes(@Nonnull
String lsMOdeLine)
protected char[] getLsModeParts()
@Nullable public Integer getGroupId()
PlexusIoResourceAttributesgetGroupId in interface PlexusIoResourceAttributes@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()
getOctalMode in interface PlexusIoResourceAttributespublic String getOctalModeString()
public PlexusIoResourceAttributes setGroupId(Integer gid)
public PlexusIoResourceAttributes setGroupName(String name)
public PlexusIoResourceAttributes setUserId(Integer uid)
public PlexusIoResourceAttributes setUserName(String name)
public PlexusIoResourceAttributes setLsModeline(@Nonnull String modeLine)
public boolean isSymbolicLink()
isSymbolicLink in interface PlexusIoResourceAttributesCopyright © 2001-2015 Codehaus. All Rights Reserved.