Autopsy  4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Static Public Member Functions | List of all members
org.sleuthkit.autopsy.textreaders.TextReaders Class Reference

Classes

class  NoTextReaderFound
 

Static Public Member Functions

static Reader getReader (Content content, Lookup context) throws NoTextReaderFound
 
static Reader getReader (Content content) throws NoTextReaderFound
 
static Reader getStringsReader (Content content, Lookup context)
 

Detailed Description

Factory for creating Readers given a Content instance

See org.sleuthkit.autopsy.textreaders.textreaderconfigs for available Reader configuration options.

See also
org.openide.util.Lookup

Definition at line 39 of file TextReaders.java.

Member Function Documentation

static Reader org.sleuthkit.autopsy.textreaders.TextReaders.getReader ( Content  content,
Lookup  context 
) throws NoTextReaderFound
static

Returns a reader containing the Content text. Configuration files can be added to the Lookup.

See org.sleuthkit.autopsy.textreaders.textreaderconfigs for available Reader configuration options.

Parameters
contentContent source that will be read from
contextContains extraction configurations for certain file types
Returns
Reader containing file text
Exceptions
NoTextReaderFoundEncountered when there is no Reader found for the given content type or there was an error while creating the reader.
See also
org.openide.util.Lookup

Definition at line 59 of file TextReaders.java.

Referenced by org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule.Indexer.extractTextAndIndex(), org.sleuthkit.autopsy.textreaders.TextReaders.getReader(), org.sleuthkit.autopsy.keywordsearch.SolrSearchService.index(), and org.sleuthkit.autopsy.keywordsearch.SolrSearchService.indexArtifact().

static Reader org.sleuthkit.autopsy.textreaders.TextReaders.getReader ( Content  content) throws NoTextReaderFound
static

Returns a reader containing the Content text.

Parameters
contentContent instance that will be read from
Returns
Reader containing file text
Exceptions
NoTextReaderFoundEncountered when there is no Reader was found for the given content type. Use getStringsReader(Content,Lookup) method instead.

Definition at line 107 of file TextReaders.java.

References org.sleuthkit.autopsy.textreaders.TextReaders.getReader().

static Reader org.sleuthkit.autopsy.textreaders.TextReaders.getStringsReader ( Content  content,
Lookup  context 
)
static

Returns a Reader containing the Content strings. This method supports all content types. This method should be used as a backup in the event that no reader was found using getReader(Content) or getReader(Content, Lookup).

Configure this reader with the StringsConfig in org.sleuthkit.autopsy.textreaders.textreaderconfigs

Parameters
contentContent source to read from
contextContains extraction configurations for certain file types
Returns
Reader containing file text
See also
org.openide.util.Lookup

Definition at line 128 of file TextReaders.java.

Referenced by org.sleuthkit.autopsy.keywordsearch.KeywordSearchIngestModule.Indexer.extractStringsAndIndex(), and org.sleuthkit.autopsy.keywordsearch.SolrSearchService.index().


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

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