Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readFiletime (0.05 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            data[5] = (byte) (high >> 8);
            data[6] = (byte) (high >> 16);
            data[7] = (byte) (high >> 24);
    
            PacDataInputStream pdis = createInputStream(data);
            Date date = pdis.readFiletime();
            assertNotNull(date);
            // Allow for a small difference due to precision loss
            assertEquals(time / 1000, date.getTime() / 1000);
    
            // Test with null date (0x7fffffff ffffffff)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacDataInputStream.java

        /**
         * Reads a Windows FILETIME value and converts it to a Date.
         * @return the Date object, or null if the time represents infinity
         * @throws IOException if an I/O error occurs
         */
        public Date readFiletime() throws IOException {
            Date date = null;
    
            final long last = readUnsignedInt();
            final long first = readUnsignedInt();
            if (first != 0x7fffffffL && last != 0xffffffffL) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top