Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datamodel.ContentUtils Class Reference

Classes

class  ExtractFscContentVisitor
 
class  SystemNameVisitor
 

Static Public Member Functions

static String getStringTime (long epochSeconds, TimeZone tzone)
 
static String getStringTimeISO8601 (long epochSeconds, TimeZone tzone)
 
static String getStringTime (long epochSeconds, Content c)
 
static String getStringTimeISO8601 (long epochSeconds, Content c)
 
static TimeZone getTimeZone (Content c)
 
static String getSystemName (Content content)
 
static< T, V > long writeToFile (Content content, java.io.File outputFile, ProgressHandle progress, SwingWorker< T, V > worker, boolean source) throws IOException
 
static void writeToFile (Content content, java.io.File outputFile) throws IOException
 
static boolean isDotDirectory (AbstractFile dir)
 
static boolean shouldDisplayTimesInLocalTime ()
 

Private Member Functions

 ContentUtils ()
 

Static Private Attributes

static final Logger logger = Logger.getLogger(ContentUtils.class.getName())
 
static boolean displayTimesInLocalTime = UserPreferences.displayTimesInLocalTime()
 
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 final SystemNameVisitor systemName = new SystemNameVisitor()
 
static final int TO_FILE_BUFFER_SIZE = 8192
 

Detailed Description

Static class of utility methods for Content objects

Definition at line 50 of file ContentUtils.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datamodel.ContentUtils.ContentUtils ( )
private

Definition at line 69 of file ContentUtils.java.

Member Function Documentation

static String org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime ( long  epochSeconds,
TimeZone  tzone 
)
static
static String org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime ( long  epochSeconds,
Content  c 
)
static

Convert epoch seconds to a string value (convenience method)

Parameters
epochSeconds
c
Returns

Definition at line 110 of file ContentUtils.java.

References org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTime(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().

static String org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601 ( long  epochSeconds,
TimeZone  tzone 
)
static
static String org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601 ( long  epochSeconds,
Content  c 
)
static

Convert epoch seconds to a string value (convenience method) in ISO8601 format such as 2008-07-04T13:45:04Z

Parameters
epochSeconds
c
Returns

Definition at line 122 of file ContentUtils.java.

References org.sleuthkit.autopsy.datamodel.ContentUtils.getStringTimeISO8601(), and org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().

static String org.sleuthkit.autopsy.datamodel.ContentUtils.getSystemName ( Content  content)
static

Definition at line 148 of file ContentUtils.java.

References org::sleuthkit::datamodel::Content.accept().

static TimeZone org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone ( Content  c)
static
static boolean org.sleuthkit.autopsy.datamodel.ContentUtils.isDotDirectory ( AbstractFile  dir)
static
static boolean org.sleuthkit.autopsy.datamodel.ContentUtils.shouldDisplayTimesInLocalTime ( )
static

Indicates whether or not times should be displayed using local time.

Returns
True or false.

Definition at line 388 of file ContentUtils.java.

References org.sleuthkit.autopsy.datamodel.ContentUtils.displayTimesInLocalTime.

Referenced by org.sleuthkit.autopsy.datamodel.ContentUtils.getTimeZone().

static <T,V> long org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile ( Content  content,
java.io.File  outputFile,
ProgressHandle  progress,
SwingWorker< T, V >  worker,
boolean  source 
) throws IOException
static

Reads all the data from any content object and writes (extracts) it to a file.

Parameters
contentAny content object.
outputFileWill be created if it doesn't exist, and overwritten if it does
progressprogress bar handle to update, if available. null otherwise
workerthe swing worker background thread the process runs within, or null, if in the main thread, used to handle task cancellation
sourcetrue if source file
Returns
number of bytes extracted
Exceptions
IOExceptionif file could not be written

Definition at line 179 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.corecomponents.FXVideoPanel.ExtractMedia.doInBackground(), org.sleuthkit.autopsy.corecomponents.GstVideoPanel.ExtractMedia.doInBackground(), org.sleuthkit.autopsy.datamodel.ContentUtils.ExtractFscContentVisitor< T, V >.visit(), and org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile().

static void org.sleuthkit.autopsy.datamodel.ContentUtils.writeToFile ( Content  content,
java.io.File  outputFile 
) throws IOException
static

Member Data Documentation

final SimpleDateFormat org.sleuthkit.autopsy.datamodel.ContentUtils.dateFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z")
staticprivate
final SimpleDateFormat org.sleuthkit.autopsy.datamodel.ContentUtils.dateFormatterISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'")
staticprivate
boolean org.sleuthkit.autopsy.datamodel.ContentUtils.displayTimesInLocalTime = UserPreferences.displayTimesInLocalTime()
staticprivate
final Logger org.sleuthkit.autopsy.datamodel.ContentUtils.logger = Logger.getLogger(ContentUtils.class.getName())
staticprivate

Definition at line 52 of file ContentUtils.java.

final SystemNameVisitor org.sleuthkit.autopsy.datamodel.ContentUtils.systemName = new SystemNameVisitor()
staticprivate

Definition at line 146 of file ContentUtils.java.

final int org.sleuthkit.autopsy.datamodel.ContentUtils.TO_FILE_BUFFER_SIZE = 8192
staticprivate

The documentation for this class was generated from the following file:

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.