org.stanwood.media.search
Interface IMediaSearcher

All Known Implementing Classes:
AbstractMediaSearcher, FilmSearcher, ShowSearcher

public interface IMediaSearcher

This should be implemented by classes that can search for media


Method Summary
 SearchResult search(java.io.File mediaFile, MediaDirectory mediaDir, boolean useSources)
          Used to search for a media id
 

Method Detail

search

SearchResult search(java.io.File mediaFile,
                    MediaDirectory mediaDir,
                    boolean useSources)
                    throws java.net.MalformedURLException,
                           java.io.IOException,
                           SourceException,
                           StoreException
Used to search for a media id

Parameters:
mediaFile - The episode file been processed
mediaDir - The root media directory
useSources - True to search sources, otherwise will only use stores
Returns:
The results of the search, or null if nothing could be found
Throws:
java.net.MalformedURLException - Thrown if their is a problem construction URL's
java.io.IOException - Thrown if their is a IO problem
SourceException - Thrown if their are any source problems
StoreException - Thrown if their is a problem related to stores