Package jnr.posix
Interface FileStat
-
- All Known Subinterfaces:
NanosecondFileStat
- All Known Implementing Classes:
AbstractJavaFileStat
,AixFileStat
,BaseFileStat
,DragonFlyFileStat
,FreeBSDFileStat
,FreeBSDFileStat12
,JavaFileStat
,LinuxFileStat32
,LinuxFileStat64
,LinuxFileStatAARCH64
,LinuxFileStatMIPS64
,LinuxFileStatSPARCV9
,MacOSFileStat
,OpenBSDFileStat
,SolarisFileStat32
,SolarisFileStat64
,WindowsFileStat
,WindowsRawFileStat
public interface FileStat
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_READ
static int
ALL_WRITE
static int
S_IFBLK
static int
S_IFCHR
static int
S_IFDIR
static int
S_IFIFO
static int
S_IFLNK
static int
S_IFMT
static int
S_IFREG
static int
S_IFSOCK
static int
S_IRGRP
static int
S_IROTH
static int
S_IRUSR
static int
S_ISGID
static int
S_ISUID
static int
S_ISVTX
static int
S_IWGRP
static int
S_IWOTH
static int
S_IWUSR
static int
S_IXGRP
static int
S_IXOTH
static int
S_IXUGO
static int
S_IXUSR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
atime()
long
blocks()
long
blockSize()
long
ctime()
long
dev()
java.lang.String
ftype()
int
gid()
boolean
groupMember(int gid)
long
ino()
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)
int
mode()
long
mtime()
int
nlink()
long
rdev()
long
st_size()
Note: Name 'st_size' since Structure has a 'size' method alreadyint
uid()
-
-
-
Field Detail
-
S_IFIFO
static final int S_IFIFO
- See Also:
- Constant Field Values
-
S_IFCHR
static final int S_IFCHR
- See Also:
- Constant Field Values
-
S_IFDIR
static final int S_IFDIR
- See Also:
- Constant Field Values
-
S_IFBLK
static final int S_IFBLK
- See Also:
- Constant Field Values
-
S_IFREG
static final int S_IFREG
- See Also:
- Constant Field Values
-
S_IFLNK
static final int S_IFLNK
- See Also:
- Constant Field Values
-
S_IFSOCK
static final int S_IFSOCK
- See Also:
- Constant Field Values
-
S_IFMT
static final int S_IFMT
- See Also:
- Constant Field Values
-
S_ISUID
static final int S_ISUID
- See Also:
- Constant Field Values
-
S_ISGID
static final int S_ISGID
- See Also:
- Constant Field Values
-
S_ISVTX
static final int S_ISVTX
- See Also:
- Constant Field Values
-
S_IRUSR
static final int S_IRUSR
- See Also:
- Constant Field Values
-
S_IWUSR
static final int S_IWUSR
- See Also:
- Constant Field Values
-
S_IXUSR
static final int S_IXUSR
- See Also:
- Constant Field Values
-
S_IRGRP
static final int S_IRGRP
- See Also:
- Constant Field Values
-
S_IWGRP
static final int S_IWGRP
- See Also:
- Constant Field Values
-
S_IXGRP
static final int S_IXGRP
- See Also:
- Constant Field Values
-
S_IROTH
static final int S_IROTH
- See Also:
- Constant Field Values
-
S_IWOTH
static final int S_IWOTH
- See Also:
- Constant Field Values
-
S_IXOTH
static final int S_IXOTH
- See Also:
- Constant Field Values
-
ALL_READ
static final int ALL_READ
- See Also:
- Constant Field Values
-
ALL_WRITE
static final int ALL_WRITE
- See Also:
- Constant Field Values
-
S_IXUGO
static final int S_IXUGO
- See Also:
- Constant Field Values
-
-
Method Detail
-
atime
long atime()
-
blocks
long blocks()
-
blockSize
long blockSize()
-
ctime
long ctime()
-
dev
long dev()
-
ftype
java.lang.String ftype()
-
gid
int gid()
-
groupMember
boolean groupMember(int gid)
-
ino
long ino()
-
isBlockDev
boolean isBlockDev()
-
isCharDev
boolean isCharDev()
-
isDirectory
boolean isDirectory()
-
isEmpty
boolean isEmpty()
-
isExecutable
boolean isExecutable()
-
isExecutableReal
boolean isExecutableReal()
-
isFifo
boolean isFifo()
-
isFile
boolean isFile()
-
isGroupOwned
boolean isGroupOwned()
-
isIdentical
boolean isIdentical(FileStat other)
-
isNamedPipe
boolean isNamedPipe()
-
isOwned
boolean isOwned()
-
isROwned
boolean isROwned()
-
isReadable
boolean isReadable()
-
isReadableReal
boolean isReadableReal()
-
isWritable
boolean isWritable()
-
isWritableReal
boolean isWritableReal()
-
isSetgid
boolean isSetgid()
-
isSetuid
boolean isSetuid()
-
isSocket
boolean isSocket()
-
isSticky
boolean isSticky()
-
isSymlink
boolean isSymlink()
-
major
int major(long dev)
-
minor
int minor(long dev)
-
mode
int mode()
-
mtime
long mtime()
-
nlink
int nlink()
-
rdev
long rdev()
-
st_size
long st_size()
Note: Name 'st_size' since Structure has a 'size' method already- Returns:
- size of the stat structure
-
uid
int uid()
-
-