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
Example #1
0
        static void Main(string[] args)
        {
            TikaWrapper tika = new TikaWrapper(@"..\..\tika-app-0.10.jar");
            string result = tika.Extract(File.ReadAllBytes(@"..\..\Documents\Tika.docx"), true);
            Console.WriteLine(result);

            Console.ReadLine();
        }