-2
您好一直在做一个项目,其中需要各种文件类型(html,xml等)的元数据。有没有现有的API来做到这一点。有关上述观点和建议值得欢迎。 在此先感谢。如何使用java从html文件中提取元数据
您好一直在做一个项目,其中需要各种文件类型(html,xml等)的元数据。有没有现有的API来做到这一点。有关上述观点和建议值得欢迎。 在此先感谢。如何使用java从html文件中提取元数据
Properties prop = new Properties();
try {
prop.load(new FileInputStream("filename.properties"));
} catch (IOException e) {
}
// Write properties file.
try {
prop.store(new FileOutputStream("filename.properties"), null);
} catch (IOException e) {
}
你以后是什么文件属性。你可以像上面那样访问它们。
下面是一个属性的内容文件示例:
# a comment
! a comment
a = a string
b = a string with escape sequences \t \n \r \\ \" \' \ (space) \u
c = a string with a continuation line \
continuation line
d.e.f = another string
你能给你的意思是通过元数据什么的例子? – 2009-09-28 13:37:33
关键字,作者,版本,内容类型,上次修改等 – gowth08 2009-09-29 12:13:27