Top Description Inners Fields Constructors Methods
jnr.posix.windows

public abstract Class CommonFileInformation

extends Struct
Class Inheritance
Known Direct Subclasses
jnr.posix.windows.WindowsByHandleFileInformation, jnr.posix.windows.WindowsFileInformation, jnr.posix.windows.WindowsFindData
Static Imports
jnr.posix.FileStat.*

Shared logic between by handle and file path FILE_INFORMATION.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class

Field Summary

Modifier and TypeField and Description
private static final double
public static int
public static int
public static final int
private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
asNanoSeconds(long seconds)

private long
epochNanos(long windowsNanoChunks)

public abstract CommonFileInformation.HackyFileTime
public long
public abstract int
public long
public abstract long
public abstract long
public abstract CommonFileInformation.HackyFileTime
public long
public abstract CommonFileInformation.HackyFileTime
public long
public int
Inherited from jnr.ffi.Struct:
alignmentarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayBeginarrayEndarrayOffunctiongetMemorygetMemorygetRuntimeinnerinnerisDirectsizesizesizetoStringuseMemory

Field Detail

DAYS_BETWEEN_WINDOWS_AND_UNIXback to summary
private static final double DAYS_BETWEEN_WINDOWS_AND_UNIX
FILE_ATTRIBUTE_DIRECTORYback to summary
public static int FILE_ATTRIBUTE_DIRECTORY
FILE_ATTRIBUTE_READONLYback to summary
public static int FILE_ATTRIBUTE_READONLY
NANOSECONDSback to summary
public static final int NANOSECONDS
NANOSECONDS_TO_UNIX_EPOCH_FROM_WINDOWSback to summary
private static final long NANOSECONDS_TO_UNIX_EPOCH_FROM_WINDOWS

Constructor Detail

CommonFileInformationback to summary
protected CommonFileInformation(Runtime runtime)

Method Detail

asNanoSecondsback to summary
public static long asNanoSeconds(long seconds)
epochNanosback to summary
private long epochNanos(long windowsNanoChunks)
getCreationTimeback to summary
public abstract CommonFileInformation.HackyFileTime getCreationTime()
getCreationTimeNanosecondsback to summary
public long getCreationTimeNanoseconds()
getFileAttributesback to summary
public abstract int getFileAttributes()
getFileSizeback to summary
public long getFileSize()
getFileSizeHighback to summary
public abstract long getFileSizeHigh()
getFileSizeLowback to summary
public abstract long getFileSizeLow()
getLastAccessTimeback to summary
public abstract CommonFileInformation.HackyFileTime getLastAccessTime()
getLastAccessTimeNanosecondsback to summary
public long getLastAccessTimeNanoseconds()
getLastWriteTimeback to summary
public abstract CommonFileInformation.HackyFileTime getLastWriteTime()
getLastWriteTimeNanosecondsback to summary
public long getLastWriteTimeNanoseconds()
getModeback to summary
public int getMode(String path)
jnr.posix.windows back to summary

public Class CommonFileInformation.HackyFileTime

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Struct.UnsignedLong
private final Struct.UnsignedLong

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long
public long
public long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dwHighDateTimeback to summary
private final Struct.UnsignedLong dwHighDateTime
dwLowDateTimeback to summary
private final Struct.UnsignedLong dwLowDateTime

Constructor Detail

HackyFileTimeback to summary
public HackyFileTime(Struct.UnsignedLong high, Struct.UnsignedLong low)

Method Detail

getHighDateTimeback to summary
public long getHighDateTime()
getLongValueback to summary
public long getLongValue()
getLowDateTimeback to summary
public long getLowDateTime()