C# Class BHannemann.TikaTools.TikaWrapper

Contains methods for running the Apache Tika tool from the command line. Note that a modern JVM (1.5+) must be installed and included in the system path.
Show file Open project: unicron/TikaTools Class Usage Examples

Public Methods

Method Description
Extract ( FileInfo file, bool textOnly ) : string

Extract text and/or metadata from a file using Tika.

Extract ( byte file, bool textOnly ) : string

Extract text and/or metadata from a file using Tika.

Extract ( string filePath, bool textOnly ) : string

Extract text and/or metadata from a file using Tika.

TikaWrapper ( string tikaPath ) : System

Initialize a new TikaWrapper provided the path to the Tika .jar file.

Method Details

Extract() public method

Extract text and/or metadata from a file using Tika.
public Extract ( FileInfo file, bool textOnly ) : string
file System.IO.FileInfo The file from which to extract information.
textOnly bool Extract text only, no metadata.
return string

Extract() public method

Extract text and/or metadata from a file using Tika.
public Extract ( byte file, bool textOnly ) : string
file byte The file from which to extract information.
textOnly bool Extract text only, no metadata.
return string

Extract() public method

Extract text and/or metadata from a file using Tika.
public Extract ( string filePath, bool textOnly ) : string
filePath string The path to a file from which to extract information.
textOnly bool Extract text only, no metadata.
return string

TikaWrapper() public method

Initialize a new TikaWrapper provided the path to the Tika .jar file.
public TikaWrapper ( string tikaPath ) : System
tikaPath string
return System