tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject Re: Metadata
Date Tue, 06 Jan 2009 09:26:20 GMT
Marek Sikl schrieb:
> Hi,
> would it be possible to add new method to
> /src/main/java/org/apache/tika/metadata/Metadata.java ?
>   

IIRC the idea is that one should extend/overwrite this class.

Also related to this see

http://www.mail-archive.com/tika-dev@incubator.apache.org/msg01332.html

HTH

Michael
> There is a method 'getValues' to get String array value but none to set
> one. A method 'add' only extends an existing String array and setting
> new multivalue is not very effective.
>
> /**
>    * Set metadata name/multivalue. Associate the specified multivalue to
> the specified
>    * metadata name. If some previous values were associated to this
> name, they
>    * are removed.
>    *
>    * @param name
>    *          the metadata name.
>    * @param value
>    *          the metadata multivalue.
>    */
>   public void setValues(String name, String[] value) {
>     metadata.put(name, value);
>   }
>
> BR,
>
> Marek Sikl
>   


Mime
View raw message