Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for readFiletime (0.06 sec)

  1. src/main/java/jcifs/pac/PacLogonInfo.java

                // Dates
                this.logonTime = pacStream.readFiletime();
                this.logoffTime = pacStream.readFiletime();
                this.kickOffTime = pacStream.readFiletime();
                this.pwdLastChangeTime = pacStream.readFiletime();
                this.pwdCanChangeTime = pacStream.readFiletime();
                this.pwdMustChangeTime = pacStream.readFiletime();
    
                // User related strings as UnicodeStrings
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. 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)
  3. src/test/java/jcifs/pac/PacLogonInfoTest.java

            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
            PacDataInputStream pacStream = new PacDataInputStream(bais);
    
            Date date = pacStream.readFiletime();
            assertNotNull(date);
            // The date should be around 1970 (allowing for some conversion differences)
            assertTrue(date.getYear() + 1900 >= 1969 && date.getYear() + 1900 <= 1971);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. 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