org.jruby.ext.posix
Class WindowsFileStat

java.lang.Object
  extended by com.sun.jna.Structure
      extended by org.jruby.ext.posix.BaseNativeFileStat
          extended by org.jruby.ext.posix.WindowsFileStat
All Implemented Interfaces:
FileStat

public class WindowsFileStat
extends BaseNativeFileStat


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
 int spare1
           
 int spare2
           
 int st_atime
           
 long st_blksize
           
 long st_blocks
           
 int st_ctime
           
 int st_dev
           
 short st_gid
           
 short st_ino
           
 short st_mode
           
 int st_mtime
           
 short st_nlink
           
 int st_rdev
           
 long st_size
           
 short st_uid
           
 
Fields inherited from class org.jruby.ext.posix.BaseNativeFileStat
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
WindowsFileStat(POSIX posix)
           
 
Method Summary
 long atime()
           
 long blocks()
           
 long blockSize()
           
 long ctime()
           
 long dev()
           
 int gid()
           
 boolean groupMember(int gid)
           
 long ino()
           
 boolean isExecutable()
           
 boolean isExecutableReal()
           
 boolean isOwned()
           
 boolean isReadable()
           
 boolean isReadableReal()
           
 boolean isROwned()
           
 boolean isWritable()
           
 boolean isWritableReal()
           
 int mode()
           
 long mtime()
           
 int nlink()
           
 long rdev()
           
 long st_size()
          Note: Name 'st_size' since Structure has a 'size' method already
 java.lang.String toString()
           
 int uid()
           
 
Methods inherited from class org.jruby.ext.posix.BaseNativeFileStat
ftype, isBlockDev, isCharDev, isDirectory, isEmpty, isFifo, isFile, isGroupOwned, isIdentical, isNamedPipe, isSetgid, isSetuid, isSocket, isSticky, isSymlink, major, minor
 
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, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

st_dev

public int st_dev

st_ino

public short st_ino

st_mode

public short st_mode

st_nlink

public short st_nlink

st_uid

public short st_uid

st_gid

public short st_gid

st_rdev

public int st_rdev

st_size

public long st_size

st_atime

public int st_atime

spare1

public int spare1

st_mtime

public int st_mtime

spare2

public int spare2

st_ctime

public int st_ctime

st_blksize

public long st_blksize

st_blocks

public long st_blocks
Constructor Detail

WindowsFileStat

public WindowsFileStat(POSIX posix)
Method Detail

atime

public long atime()

blockSize

public long blockSize()

blocks

public long blocks()

ctime

public long ctime()

dev

public long dev()

gid

public int gid()

ino

public long ino()

mode

public int mode()

mtime

public long mtime()

nlink

public int nlink()

rdev

public long rdev()

st_size

public long st_size()
Description copied from interface: FileStat
Note: Name 'st_size' since Structure has a 'size' method already


uid

public int uid()

groupMember

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

isExecutable

public boolean isExecutable()
Specified by:
isExecutable in interface FileStat
Overrides:
isExecutable in class BaseNativeFileStat

isExecutableReal

public boolean isExecutableReal()
Specified by:
isExecutableReal in interface FileStat
Overrides:
isExecutableReal in class BaseNativeFileStat

isOwned

public boolean isOwned()
Specified by:
isOwned in interface FileStat
Overrides:
isOwned in class BaseNativeFileStat

isROwned

public boolean isROwned()
Specified by:
isROwned in interface FileStat
Overrides:
isROwned in class BaseNativeFileStat

isReadable

public boolean isReadable()
Specified by:
isReadable in interface FileStat
Overrides:
isReadable in class BaseNativeFileStat

isReadableReal

public boolean isReadableReal()
Specified by:
isReadableReal in interface FileStat
Overrides:
isReadableReal in class BaseNativeFileStat

isWritable

public boolean isWritable()
Specified by:
isWritable in interface FileStat
Overrides:
isWritable in class BaseNativeFileStat

isWritableReal

public boolean isWritableReal()
Specified by:
isWritableReal in interface FileStat
Overrides:
isWritableReal in class BaseNativeFileStat

toString

public java.lang.String toString()
Overrides:
toString in class com.sun.jna.Structure