|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.search.MediaSearcher
public class MediaSearcher
Used to search for media information
Constructor Summary | |
---|---|
MediaSearcher(Controller controller)
The constructor |
Method Summary | |
---|---|
protected static SearchResult |
findFilm(MediaDirectory dir,
java.io.File file,
boolean useSources)
|
static IFilm |
getFilm(MediaDirectory dir,
java.io.File file,
boolean useSources)
Used to lookup film information |
static java.lang.Integer |
getFilmPart(MediaDirectory dir,
java.io.File file,
IFilm film)
Used to get the part number of a film |
static IEpisode |
getTVEpisode(MediaDirectory dir,
java.io.File file,
boolean useSources)
Used to lookup TV episode information |
MediaSearchResult |
lookupMedia(java.io.File mediaFile,
boolean useSources)
Used to lookup media file information |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaSearcher(Controller controller) throws ConfigException
controller
- The media controller
ConfigException
- Thrown if their is a problem reading the configurationMethod Detail |
---|
public MediaSearchResult lookupMedia(java.io.File mediaFile, boolean useSources) throws ActionException
mediaFile
- The media fileuseSources
- If true, then information is fetched remotely as well as locally
ActionException
- Thrown if their are any problems.public static IFilm getFilm(MediaDirectory dir, java.io.File file, boolean useSources) throws ActionException
dir
- The media directoryfile
- The media fileuseSources
- If true, then information is fetched remotely as well as locally
ActionException
- Thrown if their are any problems.protected static SearchResult findFilm(MediaDirectory dir, java.io.File file, boolean useSources) throws ActionException
ActionException
public static IEpisode getTVEpisode(MediaDirectory dir, java.io.File file, boolean useSources) throws ActionException
dir
- The media directoryfile
- The media fileuseSources
- If true, then information is fetched remotely as well as locally
ActionException
- Thrown if their are any problems.public static java.lang.Integer getFilmPart(MediaDirectory dir, java.io.File file, IFilm film)
dir
- The media directory of the filmfile
- The media filefilm
- The film information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |