magoffin.matt.meta
Interface MetadataResourceFactory

All Known Implementing Classes:
EXIFMetadataResourceFactory, ID3MetadataResourceFactory, JMFMetadataResourceFactory, PNGMetadataResourceFactory, QuickTimeMetadataResourceFactory

public interface MetadataResourceFactory

Factory API for creating MetadataResource instances.

This factory API is designed so that different, related metadata standards can be instantiated by a common factory. For example a single ID3 factory can be implemented to return different MetadataResource implementations for ID3v1, ID3v1.1, ID3v2, ID3v2.2, etc.

Version:
$Revision: 3 $ $Date: 2008-12-27 08:09:28 +1300 (Sat, 27 Dec 2008) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Method Summary
 MetadataResource getMetadataResourceInstance(java.io.File file)
          Get a MetadataResource for a given file.
 

Method Detail

getMetadataResourceInstance

MetadataResource getMetadataResourceInstance(java.io.File file)
                                             throws java.io.IOException,
                                                    MetadataNotSupportedException
Get a MetadataResource for a given file.

Parameters:
file - the file
Returns:
the MetadataResource
Throws:
java.io.IOException - if an IO error occurs
MetadataNotSupportedException - if the file is not supported for any reason