public class FileDatesInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.time.Instant |
EPOCH_INSTANT
The number of seconds at the begining 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 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() |
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 FileDatesInfo()
public FileDatesInfo(int creation,
int modification,
int backup,
int access)
public static int fromInstant(java.time.Instant instant)
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()