tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Krueger <c...@mkr.io>
Subject Re: unit test error for new parser
Date Wed, 04 Jun 2014 08:27:38 GMT

Hi Annie,

> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
> /Users/annbryant/TIKA/tika/tika-parsers/src/main/java/org/apache/tika/parser/mat/MatParser.java:[69,23]
> cannot find symbol
> symbol  : constructor
> MatFileReader(org.apache.tika.io.CloseShieldInputStream)
> location: class com.jmatio.io.MatFileReader

You're trying to create a com.jmatio.io.MatFileReader passing an 
InputStream while the constructor needs something else (a java.io.File). 
TikaInputStream supports spooling InputStreams to a temp file so this 
might be the way to go. Have a look at 
org.apache.tika.parser.jpeg.JpegParser#parse and how it passes a File 
reference to the ImageMetadataExtractor.

Cheers
Matthias

Mime
View raw message