Package jnr.posix
Class AbstractJavaFileStat
- java.lang.Object
-
- jnr.posix.AbstractJavaFileStat
-
- All Implemented Interfaces:
FileStat
- Direct Known Subclasses:
JavaFileStat
,WindowsRawFileStat
public abstract class AbstractJavaFileStat extends java.lang.Object implements FileStat
-
-
Field Summary
Fields Modifier and Type Field Description protected POSIXHandler
handler
protected POSIX
posix
-
Constructor Summary
Constructors Constructor Description AbstractJavaFileStat(POSIX posix, POSIXHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
blocks()
long
blockSize()
long
dev()
java.lang.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()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jnr.posix.FileStat
atime, ctime, isDirectory, isEmpty, isExecutable, isExecutableReal, isFile, isGroupOwned, isIdentical, isOwned, isReadable, isReadableReal, isROwned, isSymlink, isWritable, isWritableReal, mode, mtime, st_size
-
-
-
-
Field Detail
-
handler
protected final POSIXHandler handler
-
posix
protected final POSIX posix
-
-
Constructor Detail
-
AbstractJavaFileStat
public AbstractJavaFileStat(POSIX posix, POSIXHandler handler)
-
-
Method Detail
-
isBlockDev
public boolean isBlockDev()
- Specified by:
isBlockDev
in interfaceFileStat
-
isCharDev
public boolean isCharDev()
Limitation: [see JRUBY-1516] We just pick more likely value. This is a little scary.
-
isNamedPipe
public boolean isNamedPipe()
- Specified by:
isNamedPipe
in interfaceFileStat
-
groupMember
public boolean groupMember(int gid)
- Specified by:
groupMember
in interfaceFileStat
-
-