nxbdi/snakeyaml

dumping Apache Tika Metadata ?

Closed this issue · 0 comments

Hi, 

First, THANKS a lot for your project. Being able to manipulate yaml from Java 
in so valuable.

I would like to discuss about something which is not an issue I think, but 
still cannot solve it... I have to use with org.apache.tika.metadta.Metadata 
(http://tika.apache.org/0.7/api/org/apache/tika/metadata/Metadata.html).
I think these metadata could be nicely dumped to or loaded from yaml, for tests 
or maybe end user editions in our case.

But this class is not a JavaBean, so trying to dump it produces a YAMLException 
org.yaml.snakeyaml.error.YAMLException: No JavaBean properties found in 
org.apache.tika.metadata.Metadata. Is there a way to "Represent" it a nice way?

Thanks for any tip, and sorry as it's not directly linked to yaml.
jg

What version of the product are you using?
yaml-1.7




Original issue reported on code.google.com by jgrand...@gmail.com on 16 Nov 2010 at 5:34