Package com.hierynomus.msdtyp
Class MsDataTypes
java.lang.Object
com.hierynomus.msdtyp.MsDataTypes
Utility class that can read and write data types from the [MS-DTYP].pdf specification document from buffers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
A 64-bit unsigned integer that contains the current system time, represented as the number of 100 nanosecond ticks elapsed since midnight of January 1, 1601 (UTC)static void
putFileTime
(FileTime fileTime, Buffer<?> buffer) [MS-DTYP].pdf 2.3.3 FILETIMEstatic void
[MS-DTYP].pdf 2.3.4.2 GUID Packet representationstatic FileTime
readFileTime
(Buffer<?> buffer) [MS-DTYP].pdf 2.3.3 FILETIMEstatic UUID
[MS-DTYP].pdf 2.3.4.2 GUID Packet representation
-
Constructor Details
-
MsDataTypes
private MsDataTypes()
-
-
Method Details
-
putGuid
[MS-DTYP].pdf 2.3.4.2 GUID Packet representation- Parameters:
guid
- The GUID to write.
-
readGuid
[MS-DTYP].pdf 2.3.4.2 GUID Packet representation- Returns:
- The GUID read from the buffer
- Throws:
Buffer.BufferException
- If an underflow occurs by reading the GUID (less than 16 bytes available).
-
readFileTime
[MS-DTYP].pdf 2.3.3 FILETIME- Returns:
- a Date converted from the Windows FILETIME stored in the buffer
- Throws:
Buffer.BufferException
- If an underflow occurs by reading the FILETIME (less than 8 bytes available).
-
putFileTime
[MS-DTYP].pdf 2.3.3 FILETIMEstore Date into FileTime in the buffer
-
nowAsFileTime
public static long nowAsFileTime()A 64-bit unsigned integer that contains the current system time, represented as the number of 100 nanosecond ticks elapsed since midnight of January 1, 1601 (UTC)
-