tika-user  

setting the content-type in metadata before parsing

Daniel Knapp
Wed, 02 Dec 2009 12:53:28 -0800

Hello,

i want to set the content-type of a file before i parse it. I've seen on the 
Tika Website that this is possible and an advantage during the parsing process.
What is the right name and value of this attribute (expect for pdf = 
application/pdf ?)? Is the following method right?

metadata.set("attribute-name", "value"); 

Hope i'm clear.

Regards,
Daniel

Attachment: smime.p7s
Description: S/MIME cryptographic signature