de.aitools.aq.textextraction
Class TikaConverter

java.lang.Object
  extended by de.aitools.aq.textextraction.TextExtractor
      extended by de.aitools.aq.textextraction.TikaConverter

public class TikaConverter
extends TextExtractor


Constructor Summary
TikaConverter()
           
 
Method Summary
 void extract(java.io.File from, java.io.File to)
          Extracts plain text from the given inputFile.
 java.util.Set<org.apache.tika.mime.MediaType> getSupportedMediaTypes()
          Returns a the MIME type supported by this converter.
 
Methods inherited from class de.aitools.aq.textextraction.TextExtractor
extract
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TikaConverter

public TikaConverter()
Method Detail

getSupportedMediaTypes

public java.util.Set<org.apache.tika.mime.MediaType> getSupportedMediaTypes()
Description copied from class: TextExtractor
Returns a the MIME type supported by this converter.

Specified by:
getSupportedMediaTypes in class TextExtractor
Returns:
The supported MIME type.

extract

public void extract(java.io.File from,
                    java.io.File to)
             throws TextExtractorException
Description copied from class: TextExtractor
Extracts plain text from the given inputFile. The retrieved content will be stored in outputFile.

Specified by:
extract in class TextExtractor
Parameters:
from - The input file to extract plain text from
to - The path of the plain text file to be created
Throws:
TextExtractorException