public class FileDatesInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES
Number of bytes a File Dates Info takes per AppleSingle spec.
|
static java.time.Instant |
EPOCH_INSTANT
The number of seconds at the beginning of the AppleSingle date epoch since the Unix epoch began.
|
static int |
UNKNOWN_DATE
Per the AppleSingle technical notes.
|
| Constructor and Description |
|---|
FileDatesInfo() |
FileDatesInfo(int creation,
int modification,
int backup,
int access) |
| Modifier and Type | Method and Description |
|---|---|
static FileDatesInfo |
fromEntry(Entry entry) |
static int |
fromInstant(java.time.Instant instant) |
int |
getAccess() |
java.time.Instant |
getAccessInstant() |
int |
getBackup() |
java.time.Instant |
getBackupInstant() |
int |
getCreation() |
java.time.Instant |
getCreationInstant() |
int |
getModification() |
java.time.Instant |
getModificationInstant() |
Entry |
toEntry() |
java.time.Instant |
toInstant(java.util.function.IntSupplier timeSupplier)
Utility method to convert the int to a valid Unix epoch and Java Instant.
|
public static final java.time.Instant EPOCH_INSTANT
public static final int UNKNOWN_DATE
public static final int BYTES
public FileDatesInfo()
public FileDatesInfo(int creation,
int modification,
int backup,
int access)
public static int fromInstant(java.time.Instant instant)
public static FileDatesInfo fromEntry(Entry entry)
public Entry toEntry()
public java.time.Instant getCreationInstant()
public java.time.Instant getModificationInstant()
public java.time.Instant getBackupInstant()
public java.time.Instant getAccessInstant()
public java.time.Instant toInstant(java.util.function.IntSupplier timeSupplier)
public int getCreation()
public int getModification()
public int getBackup()
public int getAccess()