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.
Exemplo n.º 1
0
        public void Init()
        {
            wrapper = new TikaWrapper(@"..\..\tika-app-0.10.jar");

            DirectoryInfo d = new DirectoryInfo(@"..\..\Documents");
            files = d.GetFiles();
        }
Exemplo n.º 2
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();
        }