It is possible to know the metadata of a file in java? and if it is, How to get the metadata of a file in java?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
With Java 7 you have nio2 package, with new Path.class giving all you are looking for
Get file Metadata from java program
There is a basic set of metadata that you can get from a file.
Some things are platform dependent and my throw exceptions or return unexpected results.
You can read more at Managing Metadata (File and File Store Attributes).
FITS is a command line app that bundles many tools that can identify and characterize files (extract metadata). It also has a java API
Also there are numerous identification and characterization tools that can do similar tasks. Apache Tika, Pronom Droid, Jhove, etc.