org.jruby.ext.posix
Class BaseNativeFileStat

java.lang.Object
  extended by com.sun.jna.Structure
      extended by org.jruby.ext.posix.BaseNativeFileStat
All Implemented Interfaces:
FileStat
Direct Known Subclasses:
Linux64FileStat, LinuxFileStat, MacOSFileStat, SolarisFileStat, WindowsFileStat

public abstract class BaseNativeFileStat
extends com.sun.jna.Structure
implements FileStat


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue
 
Field Summary
protected  POSIX posix
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
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
 
Constructor Summary
BaseNativeFileStat(POSIX posix)
           
 
Method Summary
 java.lang.String ftype()
           
 boolean groupMember(int gid)
           
 boolean isBlockDev()
           
 boolean isCharDev()
           
 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)
           
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jruby.ext.posix.FileStat
atime, blocks, blockSize, ctime, dev, gid, ino, mode, mtime, nlink, rdev, st_size, uid
 

Field Detail

posix

protected POSIX posix
Constructor Detail

BaseNativeFileStat

public BaseNativeFileStat(POSIX posix)
Method Detail

ftype

public java.lang.String ftype()
Specified by:
ftype in interface FileStat

groupMember

public boolean groupMember(int gid)
Specified by:
groupMember in interface FileStat

isBlockDev

public boolean isBlockDev()
Specified by:
isBlockDev in interface FileStat

isCharDev

public boolean isCharDev()
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

isFile

public boolean isFile()
Specified by:
isFile in interface FileStat

isFifo

public boolean isFifo()
Specified by:
isFifo 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

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

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

major

public int major(long dev)
Specified by:
major in interface FileStat

minor

public int minor(long dev)
Specified by:
minor in interface FileStat


Copyright © 2010. All Rights Reserved.