Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector Class Reference

Public Member Functions

synchronized String detect (AbstractFile abstractFile)
 
synchronized String detectAndSave (AbstractFile abstractFile) throws TskCoreException
 
boolean isMimeTypeDetectable (String mimeType)
 

Private Attributes

final byte buffer [] = new byte[BUFFER_SIZE]
 
final int BUFFER_SIZE = 64 * 1024
 

Static Private Attributes

static final Tika tikaInst = new Tika()
 

Detailed Description

Deprecated:
Use org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector instead.

Definition at line 36 of file TikaFileTypeDetector.java.

Member Function Documentation

synchronized String org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.detect ( AbstractFile  abstractFile)

Detect the mime type of the passed in file

Parameters
abstractFile
Returns
mime type of detected format or null
Deprecated:
Use FileTypeDetector.detect(AbstractFile file) instead.

Definition at line 77 of file TikaFileTypeDetector.java.

References org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.buffer.

Referenced by org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.detectAndSave().

synchronized String org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.detectAndSave ( AbstractFile  abstractFile) throws TskCoreException

Detect the mime type of the passed in file and save it to the blackboard

Parameters
abstractFile
Returns
mime type or null
Exceptions
TskCoreException
Deprecated:
Use FileTypeDetector.detectAndPostToBlackboard(AbstractFile file) instead.

Definition at line 54 of file TikaFileTypeDetector.java.

References org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.detect().

boolean org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.isMimeTypeDetectable ( String  mimeType)

Validate if a given mime type is in the registry. For Tika, we remove the string "tika" from all MIME names, e.g. use "application/x-msoffice" NOT "application/x-tika-msoffice"

Deprecated:
Use FileTypeDetector.isDetectable(String mimeType) instead.
Parameters
mimeTypeFull string of mime type, e.g. "text/html"
Returns
true if detectable

Definition at line 108 of file TikaFileTypeDetector.java.

Member Data Documentation

final byte org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.buffer[] = new byte[BUFFER_SIZE]
private
final int org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.BUFFER_SIZE = 64 * 1024
private

Definition at line 39 of file TikaFileTypeDetector.java.

final Tika org.sleuthkit.autopsy.modules.filetypeid.TikaFileTypeDetector.tikaInst = new Tika()
staticprivate

Definition at line 38 of file TikaFileTypeDetector.java.


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

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