我一直在尝试从Apache tika中提取元数据以获取Flash文件并获得以下输出。
D:\DocumentServiceProject\FileTypes>java -jar tika-app-1.5.jar -j MfS.swf
{ "Content-Length":1328282,
"Content-Type":"application/x-shockwave-flash",
"resourceName":"MfS.swf" }
对我得到的不满意,我看着Exiftool,很高兴看到我得到的东西。
D:\DocumentServiceProject\FileTypes>exiftool -j MfS.swf
[{
"SourceFile": "MfS.swf",
"ExifToolVersion": 9.58,
"FileName": "MfS.swf",
"Directory": ".",
"FileSize": "1297 kB",
"FileModifyDate": "2014:04:21 13:28:27+05:30",
"FileAccessDate": "2014:04:21 13:32:06+05:30",
"FileCreateDate": "2014:04:21 13:24:47+05:30",
"FilePermissions": "rw-rw-rw-",
"FileType": "SWF",
"MIMEType": "application/x-shockwave-flash",
"FlashVersion": 10,
"Compressed": true,
"ImageWidth": 1024,
"ImageHeight": 768,
"FrameRate": 24,
"FrameCount": 2,
"Duration": "0.08 s",
"FileAttributes": "UseNetwork, ActionScript3, HasMetadata",
"Format": "application/x-shockwave-flash",
"Title": "Vendor Portal Flex",
"Language": "en_US",
"Date": "Mon Apr 21 13:28:09 IST 2014",
"ImageSize": "1024x768"
}]
Apache Tika有没有办法帮助我获取这些元数据。我还有其他电影扩展程序也可以处理,但有同样的问题,因此不会尝试在此问题中复制所有文件类型。