net.sf.dc.processes.http
Class IMDBMovieUpdate

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.dc.processes.http.InternetUpdateProcess
          extended by net.sf.dc.processes.http.IMDBMovieUpdate
All Implemented Interfaces:
java.lang.Runnable

public class IMDBMovieUpdate
extends InternetUpdateProcess

Access www.imdb.com to gather movie specific information

Since:
1.4
Version:
1.6
Author:
Robert Jan van der Waals

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class net.sf.dc.processes.http.InternetUpdateProcess
cancelled
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IMDBMovieUpdate(InternetSearchForm ui, java.lang.String searchString, boolean broadband)
          initializes the IMDB query
 
Method Summary
 java.lang.String getDescription(java.lang.String sID)
          Gets the description for this movie
 java.lang.String[] getIDs()
          Searches for the maching ID's from the search result(s)
 Movie parseInformation(java.lang.String sID)
          Reads the information from imdb.com
 void run()
           
 
Methods inherited from class net.sf.dc.processes.http.InternetUpdateProcess
stopSearch
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMDBMovieUpdate

public IMDBMovieUpdate(InternetSearchForm ui,
                       java.lang.String searchString,
                       boolean broadband)
initializes the IMDB query

Parameters:
searchString - the string on which will be searched
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getIDs

public java.lang.String[] getIDs()
Searches for the maching ID's from the search result(s)


parseInformation

public Movie parseInformation(java.lang.String sID)
                       throws java.lang.Exception
Reads the information from imdb.com

Parameters:
sID - the movie ID from imdb.com
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription(java.lang.String sID)
Gets the description for this movie

Parameters:
sID - imdb movie ID