public class Java7FileAttributes extends Object implements PlexusIoResourceAttributes
Constructor and Description |
---|
Java7FileAttributes(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() |
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) |
public Java7FileAttributes(@Nonnull File file, @Nonnull Map<Integer,String> userCache, @Nonnull Map<Integer,String> groupCache) throws IOException
IOException
@Nonnull public static PlexusIoResourceAttributes uncached(@Nonnull File file) throws IOException
IOException
@Nullable public Integer getGroupId()
PlexusIoResourceAttributes
getGroupId
in interface PlexusIoResourceAttributes
public boolean hasGroupId()
public boolean hasUserId()
@Nullable public String getGroupName()
PlexusIoResourceAttributes
getGroupName
in interface PlexusIoResourceAttributes
public Integer getUserId()
PlexusIoResourceAttributes
getUserId
in interface PlexusIoResourceAttributes
public String getUserName()
PlexusIoResourceAttributes
getUserName
in interface PlexusIoResourceAttributes
public boolean isGroupExecutable()
isGroupExecutable
in interface PlexusIoResourceAttributes
public boolean isGroupReadable()
isGroupReadable
in interface PlexusIoResourceAttributes
public boolean isGroupWritable()
isGroupWritable
in interface PlexusIoResourceAttributes
public boolean isOwnerExecutable()
isOwnerExecutable
in interface PlexusIoResourceAttributes
public boolean isOwnerReadable()
isOwnerReadable
in interface PlexusIoResourceAttributes
public boolean isOwnerWritable()
isOwnerWritable
in interface PlexusIoResourceAttributes
public boolean isWorldExecutable()
isWorldExecutable
in interface PlexusIoResourceAttributes
public boolean isWorldReadable()
isWorldReadable
in interface PlexusIoResourceAttributes
public boolean isWorldWritable()
isWorldWritable
in interface PlexusIoResourceAttributes
public int getOctalMode()
getOctalMode
in interface PlexusIoResourceAttributes
public int calculatePosixOctalMode()
public String getOctalModeString()
public boolean isSymbolicLink()
isSymbolicLink
in interface PlexusIoResourceAttributes
Copyright © 2001-2015 Codehaus. All Rights Reserved.