Class FileDatesInfo


  • public class FileDatesInfo
    extends java.lang.Object
    • Field Detail

      • EPOCH_INSTANT

        public static final java.time.Instant EPOCH_INSTANT
        The number of seconds at the beginning of the AppleSingle date epoch since the Unix epoch began.
      • UNKNOWN_DATE

        public static final int UNKNOWN_DATE
        Per the AppleSingle technical notes.
        See Also:
        Constant Field Values
      • BYTES

        public static final int BYTES
        Number of bytes a File Dates Info takes per AppleSingle spec.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileDatesInfo

        public FileDatesInfo()
      • FileDatesInfo

        public FileDatesInfo​(int creation,
                             int modification,
                             int backup,
                             int access)
    • Method Detail

      • fromInstant

        public static int fromInstant​(java.time.Instant instant)
      • toEntry

        public Entry toEntry()
      • getCreationInstant

        public java.time.Instant getCreationInstant()
      • getModificationInstant

        public java.time.Instant getModificationInstant()
      • getBackupInstant

        public java.time.Instant getBackupInstant()
      • getAccessInstant

        public java.time.Instant getAccessInstant()
      • toInstant

        public java.time.Instant toInstant​(java.util.function.IntSupplier timeSupplier)
        Utility method to convert the int to a valid Unix epoch and Java Instant.
      • getCreation

        public int getCreation()
      • getModification

        public int getModification()
      • getBackup

        public int getBackup()
      • getAccess

        public int getAccess()