Hi there,
I'm using Tika 0.2 for extracting various content type.
I tried TXTParser for txt files. It's OK. But when I change the parser to
AutoDetectParser. It cannot extract content.
Here my code
Metadata metadata = new Metadata();
StringWriter writer = new StringWriter();
parser.parse(new FileInputStream(f), new
BodyContentHandler(writer),metadata);
Just simple set the the RESOURCE_NAME_KEY to the filename of your file....
That seemed to be a bug ....I'm not sure about that...
Kind regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de