org.jruby.ext.posix
Class JavaFileStat
java.lang.Object
org.jruby.ext.posix.JavaFileStat
- All Implemented Interfaces:
- FileStat
public final class JavaFileStat
- extends java.lang.Object
- implements FileStat
Fields inherited from interface org.jruby.ext.posix.FileStat |
ALL_READ, ALL_WRITE, S_IFBLK, S_IFCHR, S_IFDIR, S_IFIFO, S_IFLNK, S_IFMT, S_IFREG, S_IFSOCK, S_IRGRP, S_IROTH, S_IRUSR, S_ISGID, S_ISUID, S_ISVTX, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, S_IXUGO, S_IXUSR |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaFileStat
public JavaFileStat(POSIX posix,
POSIXHandler handler)
setup
public void setup(java.lang.String path)
atime
public long atime()
- Limitation: Java has no access time support, so we return mtime as the next best thing.
- Specified by:
atime
in interface FileStat
blocks
public long blocks()
- Specified by:
blocks
in interface FileStat
blockSize
public long blockSize()
- Specified by:
blockSize
in interface FileStat
ctime
public long ctime()
- Specified by:
ctime
in interface FileStat
dev
public long dev()
- Specified by:
dev
in interface FileStat
ftype
public java.lang.String ftype()
- Specified by:
ftype
in interface FileStat
gid
public int gid()
- Specified by:
gid
in interface FileStat
groupMember
public boolean groupMember(int gid)
- Specified by:
groupMember
in interface FileStat
ino
public long ino()
- Limitation: We have no pure-java way of getting inode. webrick needs this defined to work.
- Specified by:
ino
in interface FileStat
isBlockDev
public boolean isBlockDev()
- Specified by:
isBlockDev
in interface FileStat
isCharDev
public boolean isCharDev()
- Limitation: [see JRUBY-1516] We just pick more likely value. This is a little scary.
- Specified by:
isCharDev
in interface FileStat
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interface FileStat
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface FileStat
isExecutable
public boolean isExecutable()
- Specified by:
isExecutable
in interface FileStat
isExecutableReal
public boolean isExecutableReal()
- Specified by:
isExecutableReal
in interface FileStat
isFifo
public boolean isFifo()
- Specified by:
isFifo
in interface FileStat
isFile
public boolean isFile()
- Specified by:
isFile
in interface FileStat
isGroupOwned
public boolean isGroupOwned()
- Specified by:
isGroupOwned
in interface FileStat
isIdentical
public boolean isIdentical(FileStat other)
- Specified by:
isIdentical
in interface FileStat
isNamedPipe
public boolean isNamedPipe()
- Specified by:
isNamedPipe
in interface FileStat
isOwned
public boolean isOwned()
- Specified by:
isOwned
in interface FileStat
isROwned
public boolean isROwned()
- Specified by:
isROwned
in interface FileStat
isReadable
public boolean isReadable()
- Specified by:
isReadable
in interface FileStat
isReadableReal
public boolean isReadableReal()
- Specified by:
isReadableReal
in interface FileStat
isSymlink
public boolean isSymlink()
- Specified by:
isSymlink
in interface FileStat
isWritable
public boolean isWritable()
- Specified by:
isWritable
in interface FileStat
isWritableReal
public boolean isWritableReal()
- Specified by:
isWritableReal
in interface FileStat
isSetgid
public boolean isSetgid()
- Specified by:
isSetgid
in interface FileStat
isSetuid
public boolean isSetuid()
- Specified by:
isSetuid
in interface FileStat
isSocket
public boolean isSocket()
- Specified by:
isSocket
in interface FileStat
isSticky
public boolean isSticky()
- Specified by:
isSticky
in interface FileStat
major
public int major(long dev)
- Specified by:
major
in interface FileStat
minor
public int minor(long dev)
- Specified by:
minor
in interface FileStat
mode
public int mode()
- Specified by:
mode
in interface FileStat
mtime
public long mtime()
- Specified by:
mtime
in interface FileStat
nlink
public int nlink()
- Specified by:
nlink
in interface FileStat
rdev
public long rdev()
- Specified by:
rdev
in interface FileStat
st_size
public long st_size()
- Description copied from interface:
FileStat
- Note: Name 'st_size' since Structure has a 'size' method already
- Specified by:
st_size
in interface FileStat
uid
public int uid()
- Specified by:
uid
in interface FileStat
Copyright © 2012. All Rights Reserved.