Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
class | ExtractFscContentVisitor |
class | SystemNameVisitor |
Static Public Member Functions | |
static String | getStringTime (long epochSeconds, TimeZone tzone) |
static String | getStringTime (long epochSeconds, Content content) |
static String | getStringTimeISO8601 (long epochSeconds, TimeZone tzone) |
static String | getStringTimeISO8601 (long epochSeconds, Content c) |
static String | getSystemName (Content content) |
static TimeZone | getTimeZone (Content content) |
static boolean | isDotDirectory (AbstractFile dir) |
static boolean | shouldDisplayTimesInLocalTime () |
static< T > long | writeToFile (Content content, java.io.File outputFile, ProgressHandle progress, Future< T > worker, boolean source) throws IOException |
static void | writeToFile (Content content, java.io.File outputFile) throws IOException |
static long | writeToFile (Content content, java.io.File outputFile, Supplier< Boolean > cancelCheck) throws IOException |
Private Member Functions | |
ContentUtils () | |
Static Private Attributes | |
static final SimpleDateFormat | dateFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z") |
static final SimpleDateFormat | dateFormatterISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") |
static boolean | displayTimesInLocalTime = UserPreferences.displayTimesInLocalTime() |
static final Logger | logger = Logger.getLogger(ContentUtils.class.getName()) |
static final SystemNameVisitor | systemName = new SystemNameVisitor() |
static final int | TO_FILE_BUFFER_SIZE = 8192 |
Static class of utility methods for Content objects
Definition at line 55 of file ContentUtils.java.
|
private |
Don't instantiate
Definition at line 76 of file ContentUtils.java.
|
static |
Convert epoch seconds to a string value in the given time zone.
epochSeconds | Epoch seconds |
tzone | Time zone |
Definition at line 88 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.dateFormatter.
Referenced by org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.addEmailMsgProperty(), org.sleuthkit.autopsy.datamodel.KeywordHits.createBlackboardArtifactNode(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.createSheet(), org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.fillPropertyMap(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.fillPropertyMap(), org.sleuthkit.autopsy.report.TableReportGenerator.AttributeColumn.getCellData(), org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime(), and org.sleuthkit.autopsy.contentviewers.Metadata.setNode().
|
static |
Convert epoch seconds to a string value (convenience method)
epochSeconds | |
content |
Definition at line 127 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().
|
static |
Convert epoch seconds to a string value (ISO8601) in the given time zone.
epochSeconds | Epoch seconds |
tzone | Time zone |
Definition at line 107 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.dateFormatterISO8601.
Referenced by org.sleuthkit.autopsy.keywordsearch.Ingester.SolrFieldsVisitor.getCommonAndMACTimeFields(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601().
|
static |
Convert epoch seconds to a string value (convenience method) in ISO8601 format such as 2008-07-04T13:45:04Z
epochSeconds | |
c |
Definition at line 140 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().
|
static |
Get system name from content using SystemNameVisitor.
content | The content object. |
Definition at line 172 of file ContentUtils.java.
|
static |
Definition at line 144 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.shouldDisplayTimesInLocalTime().
Referenced by org.sleuthkit.autopsy.corecomponents.DataContentViewerArtifact.ResultsTableArtifact.addRows(), org.sleuthkit.autopsy.datamodel.ArtifactStringContent.getString(), org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601().
|
static |
Helper to ignore the '.' and '..' directories
dir | the directory to check |
Definition at line 300 of file ContentUtils.java.
Referenced by org.sleuthkit.autopsy.directorytree.ExtractAction.runExtractionTasks(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbSearchAction.InitializeContentVisitor.visit(), and org.sleuthkit.autopsy.datamodel.ContentUtils.ExtractFscContentVisitor< T, V >.visitDir().
|
static |
Indicates whether or not times should be displayed using local time.
Definition at line 501 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.displayTimesInLocalTime.
Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().
|
static |
Reads all the data from any content object and writes (extracts) it to a file.
content | Any content object. |
outputFile | Will be created if it doesn't exist, and overwritten if it does |
progress | progress bar handle to update, if available. null otherwise |
worker | the swing worker background thread the process runs within, or null, if in the main thread, used to handle task cancellation |
source | true if source file |
IOException | if file could not be written |
Definition at line 210 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.TO_FILE_BUFFER_SIZE.
Referenced by org.sleuthkit.autopsy.directorytree.ExternalViewerAction.actionPerformed(), org.sleuthkit.autopsy.contentviewers.FXVideoPanel.MediaPane.ExtractMedia.call(), org.sleuthkit.autopsy.contentviewers.GstVideoPanel.ExtractMedia.doInBackground(), org.sleuthkit.autopsy.thunderbirdparser.ThunderbirdMboxFileIngestModule.processMBox(), org.sleuthkit.autopsy.thunderbirdparser.ThunderbirdMboxFileIngestModule.processPst(), org.sleuthkit.autopsy.datamodel.ContentUtils.ExtractFscContentVisitor< T, V >.visit(), and org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().
|
static |
Write content to an output file.
content | The Content object. |
outputFile | The output file. |
IOException | If the file could not be written. |
Definition at line 253 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().
|
static |
Reads all the data from any content object and writes (extracts) it to a file, using a cancellation check instead of a Future object method.
content | Any content object. |
outputFile | Will be created if it doesn't exist, and overwritten if it does |
cancelCheck | A function used to check if the file write process should be terminated. |
IOException | if file could not be written |
Definition at line 271 of file ContentUtils.java.
References org.sleuthkit.autopsy.datamodel.ContentUtils.TO_FILE_BUFFER_SIZE.
|
staticprivate |
Definition at line 59 of file ContentUtils.java.
Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime().
|
staticprivate |
Definition at line 60 of file ContentUtils.java.
Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601().
|
staticprivate |
Definition at line 58 of file ContentUtils.java.
Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.shouldDisplayTimesInLocalTime().
|
staticprivate |
Definition at line 57 of file ContentUtils.java.
|
staticprivate |
Definition at line 163 of file ContentUtils.java.
|
staticprivate |
Definition at line 190 of file ContentUtils.java.
Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().
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.