Class JavaFileStat
java.lang.Object
jnr.posix.AbstractJavaFileStat
jnr.posix.JavaFileStat
- All Implemented Interfaces:
FileStat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) BasicFileAttributes(package private) DosFileAttributes(package private) PosixFileAttributes(package private) shortFields inherited from class AbstractJavaFileStat
handler, posix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongatime()Limitation: Java has no access time support, so we return mtime as the next best thing.private shortcalculateMode(File file, short st_mode) private static shortcalculateSymlink(File file, short st_mode) longctime()booleanbooleanisEmpty()booleanbooleanbooleanisFile()booleanbooleanisIdentical(FileStat other) booleanisOwned()booleanbooleanbooleanisROwned()booleanbooleanbooleanintmode()longmtime()voidlongst_size()Note: Name 'st_size' since Structure has a 'size' method already
-
Field Details
-
st_mode
short st_mode -
attrs
BasicFileAttributes attrs -
posixAttrs
PosixFileAttributes posixAttrs -
dosAttrs
DosFileAttributes dosAttrs
-
-
Constructor Details
-
JavaFileStat
-
-
Method Details
-
setup
-
calculateMode
-
calculateSymlink
- Throws:
IOException
-
atime
public long atime()Limitation: Java has no access time support, so we return mtime as the next best thing. -
ctime
public long ctime() -
isDirectory
public boolean isDirectory() -
isEmpty
public boolean isEmpty() -
isExecutable
public boolean isExecutable() -
isExecutableReal
public boolean isExecutableReal() -
isFile
public boolean isFile() -
isGroupOwned
public boolean isGroupOwned() -
isIdentical
-
isOwned
public boolean isOwned() -
isROwned
public boolean isROwned() -
isReadable
public boolean isReadable() -
isReadableReal
public boolean isReadableReal() -
isSymlink
public boolean isSymlink() -
isWritable
public boolean isWritable() -
isWritableReal
public boolean isWritableReal() -
mode
public int mode() -
mtime
public long mtime() -
st_size
public long st_size()Description copied from interface:FileStatNote: Name 'st_size' since Structure has a 'size' method already- Returns:
- size of the stat structure
-