Mattmann, Chris A (388J)
Wed, 02 Dec 2009 17:12:56 -0800
Hi Daniel, I think you're looking for:
Metadata met = new Metadata();
met.set(Metadata.CONTENT_TYPE, "application/pdf");
HTH!
Cheers,
Chris
On 12/2/09 12:52 PM, "Daniel Knapp" <daniel.kn...@mni.fh-giessen.de> wrote:
> 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
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.mattm...@jpl.nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department University of
Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++