Package magoffin.matt.meta

sMeta: simple metadata API for Java

See:
          Description

Interface Summary
MetadataImage Metadata type for an image.
MetadataResource Generic metadata extraction API.
MetadataResourceFactory Factory API for creating MetadataResource instances.
 

Class Summary
MetadataResourceFactoryManager A simple manager of MetadataResourceFactory instances.
 

Exception Summary
MetadataConfigurationException Exception thrown when configuration errors occur.
MetadataNotSupportedException Exception thrown when configuration errors occur.
 

Package magoffin.matt.meta Description

sMeta: simple metadata API for Java

The sMeta library provides a simple way to extract metadata from various file types. To start, look to the MetadataResourceFactoryManager class. This is the main entry point to the library, and provides a way to look up MetadataResourceFactory instances that are capable of instantiating MetadataResource instances for extracting the actual metadata.

In general, the steps for extracting metadata for a given file are thus:

  1. Get a MetadataResourceFactoryManager via MetadataResourceFactoryManager.getDefaultManagerInstance().
  2. Use the manager to locate a MetadataResourceFactory for your file via MetadataResourceFactoryManager.getMetadataResourceFactory(java.io.File)
  3. Use the returned factory to instantiate a MetadataResource for this file via MetadataResourceFactory.getMetadataResourceInstance(java.io.File).
  4. Now you have access to the available metadata via the methods of the MetadataResource interface.