Java元数据读写 [英] Java metadata read and write

查看:144
本文介绍了Java元数据读写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能以通用的方式(对于所有图像类型)能够使用Java读取和写入元数据,我发现了一些示例,但它们总是特定的,例如JPEG或PNG。我需要一些通用的东西,如果没有其他声明到处都是。

Is it possible in a generic way (for all image types) to be able to read and write metadata in Java, i've found a few examples but they are always specific, for JPEG or PNG for example. I need something generic enough to not if else statement everywhere.

推荐答案

我不想重写源代码,但这是一个很好的例子

I don't want to rewrite the source but here is an great example

http://johnbokma.com/java/obtaining-image-metadata。 html

查看readandDisplayMetaData函数,它会给你一个想法。

Look at the readandDisplayMetaData function and it will give you an idea.

这篇关于Java元数据读写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆