org.mmbase.module.lucene.extraction.impl
Class StringsExtractor

java.lang.Object
  extended by org.mmbase.module.lucene.extraction.impl.StringsExtractor
All Implemented Interfaces:
Extractor

public class StringsExtractor
extends Object
implements Extractor

A very simple Extractor based on unix's 'strings'.

Version:
$Id: StringsExtractor.java 35592 2009-06-02 23:56:16Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
StringsExtractor()
           
 
Method Summary
 String extract(InputStream inputStream)
          Extract text from a source
 String getCommand()
           
 String getMimeType()
          Mimetype this Extractor handles
 void setMimeType(String mimetype)
          Mimetype this Extractor handles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringsExtractor

public StringsExtractor()
Method Detail

setMimeType

public void setMimeType(String mimetype)
Description copied from interface: Extractor
Mimetype this Extractor handles

Specified by:
setMimeType in interface Extractor
Parameters:
mimetype - String representing the MIME Type

getMimeType

public String getMimeType()
Description copied from interface: Extractor
Mimetype this Extractor handles

Specified by:
getMimeType in interface Extractor
Returns:
String representing the MIME Type

getCommand

public String getCommand()

extract

public String extract(InputStream inputStream)
               throws Exception
Description copied from interface: Extractor
Extract text from a source

Specified by:
extract in interface Extractor
Parameters:
inputStream - InputStream where the data comes from
Returns:
String representing the extracted text
Throws:
Exception


MMBase 2.0-SNAPSHOT - null