net.sf.dc.processes.http
Class IMDBMovieUpdate

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sf.dc.processes.http.InternetUpdateProcess
          extended bynet.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.3
Version:
1.6
Author:
Robert-Jan van der Waals

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 www.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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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()

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 www.imdb.com

Parameters:
sID - the movie ID from www.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