Search in sources :

Example 1 with TypeDetector

use of org.apache.tika.detect.TypeDetector in project tika by apache.

the class MboxParserTest method setUp.

@Before
public void setUp() throws Exception {
    typeDetector = new TypeDetector();
    autoDetectParser = new AutoDetectParser(typeDetector);
    recursingContext = new ParseContext();
    recursingContext.set(Parser.class, autoDetectParser);
    mboxParser = new MboxParser();
    mboxParser.setTracking(true);
}
Also used : ParseContext(org.apache.tika.parser.ParseContext) TypeDetector(org.apache.tika.detect.TypeDetector) AutoDetectParser(org.apache.tika.parser.AutoDetectParser) Before(org.junit.Before)

Aggregations

TypeDetector (org.apache.tika.detect.TypeDetector)1 AutoDetectParser (org.apache.tika.parser.AutoDetectParser)1 ParseContext (org.apache.tika.parser.ParseContext)1 Before (org.junit.Before)1