public class PersistenceUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TEMPFIX |
| Constructor and Description |
|---|
PersistenceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanDirectory(java.nio.file.Path pathToClean)
Move temporary files to their final location.
|
static void |
cleanDirectory(java.nio.file.Path pathToClean,
long cutOffMillis)
Clean up the given directory by deleting files that are older than the
given cut-off timestamp, and by moving temporary files to their final
location.
|
static java.lang.String |
dateTime(java.util.Date dateTime)
Return all date-time as string.
|
static java.lang.String |
dateTime(long dateTime)
Return all date-time as string.
|
static java.lang.String[] |
dateTimeParts(java.util.Date dateTime)
Return all date-time parts as array.
|
static java.lang.String[] |
dateTimeParts(long dateTime)
Return all date-time parts as array.
|
static boolean |
storeToFileSystem(byte[] typeAnnotation,
byte[] data,
java.nio.file.Path outputPath,
java.nio.file.StandardOpenOption option)
Stores a descriptor adding missing annotations with the given options.
|
static boolean |
storeToFileSystem(byte[] typeAnnotation,
byte[] data,
java.nio.file.Path outputPath,
java.nio.file.StandardOpenOption option,
boolean useTmp)
Stores a descriptor adding missing annotations with the given options.
|
public static final java.lang.String TEMPFIX
public static boolean storeToFileSystem(byte[] typeAnnotation,
byte[] data,
java.nio.file.Path outputPath,
java.nio.file.StandardOpenOption option)
public static boolean storeToFileSystem(byte[] typeAnnotation,
byte[] data,
java.nio.file.Path outputPath,
java.nio.file.StandardOpenOption option,
boolean useTmp)
public static void cleanDirectory(java.nio.file.Path pathToClean)
throws java.io.IOException
java.io.IOExceptionpublic static void cleanDirectory(java.nio.file.Path pathToClean,
long cutOffMillis)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String[] dateTimeParts(long dateTime)
public static java.lang.String[] dateTimeParts(java.util.Date dateTime)
public static java.lang.String dateTime(long dateTime)
public static java.lang.String dateTime(java.util.Date dateTime)