Autopsy  4.7.0
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)
 
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 33 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 50 of file TikaFileTypeDetector.java.

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

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 81 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 36 of file TikaFileTypeDetector.java.

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

Definition at line 35 of file TikaFileTypeDetector.java.


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

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.