org.stanwood.media.search
Class FilmNFOSearchStrategy

java.lang.Object
  extended by org.stanwood.media.search.FilmNFOSearchStrategy
All Implemented Interfaces:
ISearchStrategy

public class FilmNFOSearchStrategy
extends java.lang.Object
implements ISearchStrategy

This search strategy looks information about films if they are in or under a directory contains a .NFO file that describes them.


Constructor Summary
FilmNFOSearchStrategy()
           
 
Method Summary
 SearchDetails getSearch(java.io.File mediaFile, java.io.File rootMediaDir, java.lang.String renamePattern, MediaDirectory mediaDir)
          Look up the film file details using the NFO file if it can be found
 SearchDetails getSearch(java.io.File mediaFile, MediaDirectory mediaDir)
          Used to get parse the details used to perform a search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilmNFOSearchStrategy

public FilmNFOSearchStrategy()
Method Detail

getSearch

public SearchDetails getSearch(java.io.File mediaFile,
                               MediaDirectory mediaDir)
Used to get parse the details used to perform a search

Parameters:
mediaFile - The media file that is been looked up
mediaDir - The media directory the media file is in
Returns:
The search details, or null if they could not be found

getSearch

public SearchDetails getSearch(java.io.File mediaFile,
                               java.io.File rootMediaDir,
                               java.lang.String renamePattern,
                               MediaDirectory mediaDir)
Look up the film file details using the NFO file if it can be found

Specified by:
getSearch in interface ISearchStrategy
Parameters:
mediaFile - The media file that is been processed
rootMediaDir - The root media directory
renamePattern - The pattern that is been used to rename media files
mediaDir - The media directory
Returns:
The search details