hi all.
I use Tika
for all document this exception occured.
org/apache/poi/hpsf/MarkUnsupportedException

my code is:
package tikatest;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.tika.metadata.*;
import org.apache.tika.sax.*;
import org.xml.sax.ContentHandler;
import org.apache.tika.parser.microsoft.*;

/**
 *
 * @author mehran
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
      // File f = new File( "/home/mehran/Documents/saat.ods" );
       InputStream in = Main.class.getResourceAsStream("resource/test.xls");
      // InputStream in = new FileInputStream(f);
        //f.createNewFile();
       try{
       
        Metadata metadata = new Metadata();
        ContentHandler handler = new BodyContentHandler();
        new OfficeParser().parse(in, handler, metadata);
        
        System.out.println(handler.toString());
       }
       finally{
         in.close();
       }
    }

}

please help me.
-- 
View this message in context: 
http://www.nabble.com/MarkUnsupportedException-tp25937979p25937979.html
Sent from the Apache Tika - Development mailing list archive at Nabble.com.

Reply via email to