public class JavaFileStat extends Object implements FileStat
| Constructor and Description |
|---|
JavaFileStat(POSIX posix,
POSIXHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
long |
atime()
Limitation: Java has no access time support, so we return mtime as the next best thing.
|
long |
blocks() |
long |
blockSize() |
long |
ctime() |
long |
dev() |
String |
ftype() |
int |
gid() |
boolean |
groupMember(int gid) |
long |
ino()
Limitation: We have no pure-java way of getting inode.
|
boolean |
isBlockDev() |
boolean |
isCharDev()
Limitation: [see JRUBY-1516] We just pick more likely value.
|
boolean |
isDirectory() |
boolean |
isEmpty() |
boolean |
isExecutable() |
boolean |
isExecutableReal() |
boolean |
isFifo() |
boolean |
isFile() |
boolean |
isGroupOwned() |
boolean |
isIdentical(FileStat other) |
boolean |
isNamedPipe() |
boolean |
isOwned() |
boolean |
isReadable() |
boolean |
isReadableReal() |
boolean |
isROwned() |
boolean |
isSetgid() |
boolean |
isSetuid() |
boolean |
isSocket() |
boolean |
isSticky() |
boolean |
isSymlink() |
boolean |
isWritable() |
boolean |
isWritableReal() |
int |
major(long dev) |
int |
minor(long dev) |
int |
mode() |
long |
mtime() |
int |
nlink() |
long |
rdev() |
void |
setup(String path) |
long |
st_size()
Note: Name 'st_size' since Structure has a 'size' method already
|
int |
uid() |
public JavaFileStat(POSIX posix, POSIXHandler handler)
public void setup(String path)
public long atime()
public boolean groupMember(int gid)
groupMember in interface FileStatpublic long ino()
public boolean isBlockDev()
isBlockDev in interface FileStatpublic boolean isCharDev()
public boolean isDirectory()
isDirectory in interface FileStatpublic boolean isExecutable()
isExecutable in interface FileStatpublic boolean isExecutableReal()
isExecutableReal in interface FileStatpublic boolean isGroupOwned()
isGroupOwned in interface FileStatpublic boolean isIdentical(FileStat other)
isIdentical in interface FileStatpublic boolean isNamedPipe()
isNamedPipe in interface FileStatpublic boolean isReadable()
isReadable in interface FileStatpublic boolean isReadableReal()
isReadableReal in interface FileStatpublic boolean isWritable()
isWritable in interface FileStatpublic boolean isWritableReal()
isWritableReal in interface FileStatpublic long st_size()
FileStatCopyright © 2015. All Rights Reserved.