Details
Description
The attached txt file doesn't have starting headers it is treating as .eml file but it should be .txt.
stream = TikaInputStream.get(fis = new FileInputStream(paths));stream = TikaInputStream.get(fis = new FileInputStream(paths)); metadata.add(Metadata.RESOURCE_NAME_KEY, paths); MediaType mediaType = detector.detect(stream, metadata);
MediaType detect(InputStream input, Metadata metadata) throws IOException;