Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Static Public Member Functions | |
static String | createTimeStamp () |
static boolean | endsWithTimeStamp (String inputString) |
static int | getTimeStampLength () |
static String | getTimeStampOnly (String inputString) |
static String | removeTimeStamp (String inputString) |
Private Member Functions | |
TimeStampUtils () | |
Static Private Attributes | |
static final SimpleDateFormat | DATE_FORMAT = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss") |
static final int | LENGTH_OF_DATE_TIME_STAMP = 20 |
static final Pattern | TIME_STAMP_PATTERN = Pattern.compile("\\d{4}_\\d{2}_\\d{2}_\\d{2}_\\d{2}_\\d{2}$") |
Utility methods for working with time stamps of the form 'yyyy_MM_dd_HH_mm_ss'.
Definition at line 30 of file TimeStampUtils.java.
|
private |
Definition at line 102 of file TimeStampUtils.java.
|
static |
Creates a time stamp suffix using the current time.
Definition at line 65 of file TimeStampUtils.java.
|
static |
Checks whether a string ends with a time stamp.
inputString | The string to check. |
Definition at line 46 of file TimeStampUtils.java.
Referenced by org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampOnly(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.removeTimeStamp().
|
static |
Gets the fixed length of the time stamp suffix.
Definition at line 56 of file TimeStampUtils.java.
References org.sleuthkit.autopsy.coreutils.TimeStampUtils.LENGTH_OF_DATE_TIME_STAMP.
Referenced by org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampOnly(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.removeTimeStamp().
|
static |
Gets the time stamp suffix from a string, if present.
inputString | the name to check for a timestamp |
Definition at line 91 of file TimeStampUtils.java.
References org.sleuthkit.autopsy.coreutils.TimeStampUtils.endsWithTimeStamp(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength().
|
static |
Removes the time stamp suffix from a string, if present.
inputString | The string to trim. |
Definition at line 76 of file TimeStampUtils.java.
References org.sleuthkit.autopsy.coreutils.TimeStampUtils.endsWithTimeStamp(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength().
|
staticprivate |
Definition at line 37 of file TimeStampUtils.java.
|
staticprivate |
Definition at line 36 of file TimeStampUtils.java.
Referenced by org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength().
|
staticprivate |
Definition at line 35 of file TimeStampUtils.java.
Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.