Package jnr.posix.windows
Class WindowsFindData
- java.lang.Object
-
- jnr.ffi.Struct
-
- jnr.posix.windows.CommonFileInformation
-
- jnr.posix.windows.WindowsFindData
-
public class WindowsFindData extends CommonFileInformation
WIN32_FIND_DATA. For use with FindFirstFileW and friends (since this is for W methods the filename fields are wchar_t (or on windows usigned short) in width - TCHAR is an ambiguously sized type depending on which variant of method calls it).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jnr.posix.windows.CommonFileInformation
CommonFileInformation.HackyFileTime
-
Nested classes/interfaces inherited from class jnr.ffi.Struct
jnr.ffi.Struct.AbstractBoolean, jnr.ffi.Struct.AbstractMember, jnr.ffi.Struct.Address, jnr.ffi.Struct.Alignment, jnr.ffi.Struct.AsciiString, jnr.ffi.Struct.AsciiStringRef, jnr.ffi.Struct.blkcnt_t, jnr.ffi.Struct.blksize_t, jnr.ffi.Struct.BOOL16, jnr.ffi.Struct.Boolean, jnr.ffi.Struct.BYTE, jnr.ffi.Struct.caddr_t, jnr.ffi.Struct.cc_t, jnr.ffi.Struct.clock_t, jnr.ffi.Struct.dev_t, jnr.ffi.Struct.Double, jnr.ffi.Struct.DWORD, jnr.ffi.Struct.Enum<T extends java.lang.Enum<T>>, jnr.ffi.Struct.Enum16<E extends java.lang.Enum<E>>, jnr.ffi.Struct.Enum32<E extends java.lang.Enum<E>>, jnr.ffi.Struct.Enum64<E extends java.lang.Enum<E>>, jnr.ffi.Struct.Enum8<E extends java.lang.Enum<E>>, jnr.ffi.Struct.EnumField<E extends java.lang.Object>, jnr.ffi.Struct.EnumLong<E extends java.lang.Enum<E>>, jnr.ffi.Struct.Float, jnr.ffi.Struct.fsblkcnt_t, jnr.ffi.Struct.fsfilcnt_t, jnr.ffi.Struct.Function<T extends java.lang.Object>, jnr.ffi.Struct.gid_t, jnr.ffi.Struct.id_t, jnr.ffi.Struct.in_addr_t, jnr.ffi.Struct.in_port_t, jnr.ffi.Struct.ino_t, jnr.ffi.Struct.ino64_t, jnr.ffi.Struct.int16_t, jnr.ffi.Struct.int32_t, jnr.ffi.Struct.int64_t, jnr.ffi.Struct.int8_t, jnr.ffi.Struct.IntegerAlias, jnr.ffi.Struct.intptr_t, jnr.ffi.Struct.key_t, jnr.ffi.Struct.LONG, jnr.ffi.Struct.Member, jnr.ffi.Struct.mode_t, jnr.ffi.Struct.nlink_t, jnr.ffi.Struct.NumberField, jnr.ffi.Struct.off_t, jnr.ffi.Struct.Offset, jnr.ffi.Struct.Padding, jnr.ffi.Struct.pid_t, jnr.ffi.Struct.Pointer, jnr.ffi.Struct.PointerField, jnr.ffi.Struct.rlim_t, jnr.ffi.Struct.sa_family_t, jnr.ffi.Struct.Signed16, jnr.ffi.Struct.Signed32, jnr.ffi.Struct.Signed64, jnr.ffi.Struct.Signed8, jnr.ffi.Struct.SignedLong, jnr.ffi.Struct.size_t, jnr.ffi.Struct.socklen_t, jnr.ffi.Struct.speed_t, jnr.ffi.Struct.ssize_t, jnr.ffi.Struct.String, jnr.ffi.Struct.StructRef<T extends jnr.ffi.Struct>, jnr.ffi.Struct.swblk_t, jnr.ffi.Struct.tcflag_t, jnr.ffi.Struct.time_t, jnr.ffi.Struct.u_int16_t, jnr.ffi.Struct.u_int32_t, jnr.ffi.Struct.u_int64_t, jnr.ffi.Struct.u_int8_t, jnr.ffi.Struct.uid_t, jnr.ffi.Struct.uintptr_t, jnr.ffi.Struct.Unsigned16, jnr.ffi.Struct.Unsigned32, jnr.ffi.Struct.Unsigned64, jnr.ffi.Struct.Unsigned8, jnr.ffi.Struct.UnsignedLong, jnr.ffi.Struct.UTF8String, jnr.ffi.Struct.UTF8StringRef, jnr.ffi.Struct.UTFString, jnr.ffi.Struct.UTFStringRef, jnr.ffi.Struct.WBOOL, jnr.ffi.Struct.WORD
-
-
Field Summary
Fields Modifier and Type Field Description (package private) jnr.ffi.Struct.UnsignedLongahigh(package private) jnr.ffi.Struct.UnsignedLongalow(package private) jnr.ffi.Struct.PaddingcAlternateFileName(package private) jnr.ffi.Struct.PaddingcFileName(package private) jnr.ffi.Struct.UnsignedLongchigh(package private) jnr.ffi.Struct.UnsignedLongclow(package private) jnr.ffi.Struct.UnsignedLongdwFileAttributes(package private) jnr.ffi.Struct.UnsignedLongdwReserved0(package private) jnr.ffi.Struct.UnsignedLongdwReserved1static intMAX_PATH(package private) jnr.ffi.Struct.UnsignedLongnFileSizeHigh(package private) jnr.ffi.Struct.UnsignedLongnFileSizeLow(package private) jnr.ffi.Struct.UnsignedLonguhigh(package private) jnr.ffi.Struct.UnsignedLongulow-
Fields inherited from class jnr.posix.windows.CommonFileInformation
FILE_ATTRIBUTE_DIRECTORY, FILE_ATTRIBUTE_READONLY
-
-
Constructor Summary
Constructors Constructor Description WindowsFindData(jnr.ffi.Runtime runtime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonFileInformation.HackyFileTimegetCreationTime()intgetFileAttributes()longgetFileSizeHigh()longgetFileSizeLow()CommonFileInformation.HackyFileTimegetLastAccessTime()CommonFileInformation.HackyFileTimegetLastWriteTime()-
Methods inherited from class jnr.posix.windows.CommonFileInformation
asNanoSeconds, getCreationTimeMicroseconds, getFileSize, getLastAccessTimeMicroseconds, getLastWriteTimeMicroseconds, getMode
-
Methods inherited from class jnr.ffi.Struct
alignment, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, array, arrayBegin, arrayEnd, arrayOf, function, getMemory, getMemory, getRuntime, inner, isDirect, size, toString, useMemory
-
-
-
-
Field Detail
-
MAX_PATH
public static final int MAX_PATH
- See Also:
- Constant Field Values
-
dwFileAttributes
final jnr.ffi.Struct.UnsignedLong dwFileAttributes
-
chigh
final jnr.ffi.Struct.UnsignedLong chigh
-
clow
final jnr.ffi.Struct.UnsignedLong clow
-
ahigh
final jnr.ffi.Struct.UnsignedLong ahigh
-
alow
final jnr.ffi.Struct.UnsignedLong alow
-
uhigh
final jnr.ffi.Struct.UnsignedLong uhigh
-
ulow
final jnr.ffi.Struct.UnsignedLong ulow
-
nFileSizeHigh
final jnr.ffi.Struct.UnsignedLong nFileSizeHigh
-
nFileSizeLow
final jnr.ffi.Struct.UnsignedLong nFileSizeLow
-
dwReserved0
final jnr.ffi.Struct.UnsignedLong dwReserved0
-
dwReserved1
final jnr.ffi.Struct.UnsignedLong dwReserved1
-
cFileName
final jnr.ffi.Struct.Padding cFileName
-
cAlternateFileName
final jnr.ffi.Struct.Padding cAlternateFileName
-
-
Method Detail
-
getCreationTime
public CommonFileInformation.HackyFileTime getCreationTime()
- Specified by:
getCreationTimein classCommonFileInformation
-
getLastAccessTime
public CommonFileInformation.HackyFileTime getLastAccessTime()
- Specified by:
getLastAccessTimein classCommonFileInformation
-
getLastWriteTime
public CommonFileInformation.HackyFileTime getLastWriteTime()
- Specified by:
getLastWriteTimein classCommonFileInformation
-
getFileAttributes
public int getFileAttributes()
- Specified by:
getFileAttributesin classCommonFileInformation
-
getFileSizeHigh
public long getFileSizeHigh()
- Specified by:
getFileSizeHighin classCommonFileInformation
-
getFileSizeLow
public long getFileSizeLow()
- Specified by:
getFileSizeLowin classCommonFileInformation
-
-