org.codehaus.plexus.components.io.attributes
Class FileAttributes
java.lang.Object
org.codehaus.plexus.components.io.attributes.FileAttributes
- All Implemented Interfaces:
- PlexusIoResourceAttributes
public class FileAttributes
- extends Object
- implements PlexusIoResourceAttributes
VALUE_DISABLED_MODE
protected static final char VALUE_DISABLED_MODE
- See Also:
- Constant Field Values
VALUE_WRITABLE_MODE
protected static final char VALUE_WRITABLE_MODE
- See Also:
- Constant Field Values
VALUE_READABLE_MODE
protected static final char VALUE_READABLE_MODE
- See Also:
- Constant Field Values
VALUE_EXECUTABLE_MODE
protected static final char VALUE_EXECUTABLE_MODE
- See Also:
- Constant Field Values
INDEX_WORLD_EXECUTE
protected static final int INDEX_WORLD_EXECUTE
- See Also:
- Constant Field Values
INDEX_WORLD_WRITE
protected static final int INDEX_WORLD_WRITE
- See Also:
- Constant Field Values
INDEX_WORLD_READ
protected static final int INDEX_WORLD_READ
- See Also:
- Constant Field Values
INDEX_GROUP_EXECUTE
protected static final int INDEX_GROUP_EXECUTE
- See Also:
- Constant Field Values
INDEX_GROUP_WRITE
protected static final int INDEX_GROUP_WRITE
- See Also:
- Constant Field Values
INDEX_GROUP_READ
protected static final int INDEX_GROUP_READ
- See Also:
- Constant Field Values
INDEX_OWNER_EXECUTE
protected static final int INDEX_OWNER_EXECUTE
- See Also:
- Constant Field Values
INDEX_OWNER_WRITE
protected static final int INDEX_OWNER_WRITE
- See Also:
- Constant Field Values
INDEX_OWNER_READ
protected static final int INDEX_OWNER_READ
- See Also:
- Constant Field Values
FileAttributes
public FileAttributes(int userId,
String userName,
int groupId,
String groupName,
char[] mode)
FileAttributes
public FileAttributes()
getLsModeParts
protected char[] getLsModeParts()
setLsModeParts
protected void setLsModeParts(char[] mode)
getGroupId
public Integer getGroupId()
- Description copied from interface:
PlexusIoResourceAttributes
- Gets the unix group id.
- Specified by:
getGroupId
in interface PlexusIoResourceAttributes
- Returns:
- The unix group id, may be null ("not set"), even on unix
getGroupName
public String getGroupName()
- Specified by:
getGroupName
in interface PlexusIoResourceAttributes
getUserId
public Integer getUserId()
- Description copied from interface:
PlexusIoResourceAttributes
- Gets the unix user id.
- Specified by:
getUserId
in interface PlexusIoResourceAttributes
- Returns:
- The unix user id, may be null ("not set"), even on unix
getUserName
public String getUserName()
- Specified by:
getUserName
in interface PlexusIoResourceAttributes
isGroupExecutable
public boolean isGroupExecutable()
- Specified by:
isGroupExecutable
in interface PlexusIoResourceAttributes
isGroupReadable
public boolean isGroupReadable()
- Specified by:
isGroupReadable
in interface PlexusIoResourceAttributes
isGroupWritable
public boolean isGroupWritable()
- Specified by:
isGroupWritable
in interface PlexusIoResourceAttributes
isOwnerExecutable
public boolean isOwnerExecutable()
- Specified by:
isOwnerExecutable
in interface PlexusIoResourceAttributes
isOwnerReadable
public boolean isOwnerReadable()
- Specified by:
isOwnerReadable
in interface PlexusIoResourceAttributes
isOwnerWritable
public boolean isOwnerWritable()
- Specified by:
isOwnerWritable
in interface PlexusIoResourceAttributes
isWorldExecutable
public boolean isWorldExecutable()
- Specified by:
isWorldExecutable
in interface PlexusIoResourceAttributes
isWorldReadable
public boolean isWorldReadable()
- Specified by:
isWorldReadable
in interface PlexusIoResourceAttributes
isWorldWritable
public boolean isWorldWritable()
- Specified by:
isWorldWritable
in interface PlexusIoResourceAttributes
toString
public String toString()
- Overrides:
toString
in class Object
getOctalMode
public int getOctalMode()
- Specified by:
getOctalMode
in interface PlexusIoResourceAttributes
getOctalModeString
public String getOctalModeString()
- Specified by:
getOctalModeString
in interface PlexusIoResourceAttributes
setGroupExecutable
public PlexusIoResourceAttributes setGroupExecutable(boolean flag)
- Specified by:
setGroupExecutable
in interface PlexusIoResourceAttributes
setGroupId
public PlexusIoResourceAttributes setGroupId(Integer gid)
- Specified by:
setGroupId
in interface PlexusIoResourceAttributes
setGroupName
public PlexusIoResourceAttributes setGroupName(String name)
- Specified by:
setGroupName
in interface PlexusIoResourceAttributes
setGroupReadable
public PlexusIoResourceAttributes setGroupReadable(boolean flag)
- Specified by:
setGroupReadable
in interface PlexusIoResourceAttributes
setGroupWritable
public PlexusIoResourceAttributes setGroupWritable(boolean flag)
- Specified by:
setGroupWritable
in interface PlexusIoResourceAttributes
setOwnerExecutable
public PlexusIoResourceAttributes setOwnerExecutable(boolean flag)
- Specified by:
setOwnerExecutable
in interface PlexusIoResourceAttributes
setOwnerReadable
public PlexusIoResourceAttributes setOwnerReadable(boolean flag)
- Specified by:
setOwnerReadable
in interface PlexusIoResourceAttributes
setOwnerWritable
public PlexusIoResourceAttributes setOwnerWritable(boolean flag)
- Specified by:
setOwnerWritable
in interface PlexusIoResourceAttributes
setUserId
public PlexusIoResourceAttributes setUserId(Integer uid)
- Specified by:
setUserId
in interface PlexusIoResourceAttributes
setUserName
public PlexusIoResourceAttributes setUserName(String name)
- Specified by:
setUserName
in interface PlexusIoResourceAttributes
setWorldExecutable
public PlexusIoResourceAttributes setWorldExecutable(boolean flag)
- Specified by:
setWorldExecutable
in interface PlexusIoResourceAttributes
setWorldReadable
public PlexusIoResourceAttributes setWorldReadable(boolean flag)
- Specified by:
setWorldReadable
in interface PlexusIoResourceAttributes
setWorldWritable
public PlexusIoResourceAttributes setWorldWritable(boolean flag)
- Specified by:
setWorldWritable
in interface PlexusIoResourceAttributes
setLsModeline
public PlexusIoResourceAttributes setLsModeline(String modeLine)
setOctalMode
public PlexusIoResourceAttributes setOctalMode(int mode)
- Specified by:
setOctalMode
in interface PlexusIoResourceAttributes
setOctalModeString
public PlexusIoResourceAttributes setOctalModeString(String mode)
- Specified by:
setOctalModeString
in interface PlexusIoResourceAttributes
Copyright © 2001-2012 Codehaus. All Rights Reserved.