public abstract class AbstractJavaFileStat extends Object implements FileStat
| Modifier and Type | Field and Description |
|---|---|
protected POSIXHandler |
handler |
protected POSIX |
posix |
| Constructor and Description |
|---|
AbstractJavaFileStat(POSIX posix,
POSIXHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
long |
blocks() |
long |
blockSize() |
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 |
isFifo() |
boolean |
isNamedPipe() |
boolean |
isSetgid() |
boolean |
isSetuid() |
boolean |
isSocket() |
boolean |
isSticky() |
int |
major(long dev) |
int |
minor(long dev) |
int |
nlink() |
long |
rdev() |
int |
uid() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatime, ctime, isDirectory, isEmpty, isExecutable, isExecutableReal, isFile, isGroupOwned, isIdentical, isOwned, isReadable, isReadableReal, isROwned, isSymlink, isWritable, isWritableReal, mode, mtime, st_sizeprotected final POSIXHandler handler
protected final POSIX posix
public AbstractJavaFileStat(POSIX posix, POSIXHandler handler)
public boolean isBlockDev()
isBlockDev in interface FileStatpublic boolean isCharDev()
public boolean isNamedPipe()
isNamedPipe in interface FileStatpublic boolean groupMember(int gid)
groupMember in interface FileStatCopyright © 2020. All rights reserved.