net.sf.dc.http
Class IMDBMovieQuery

java.lang.Object
  extended bynet.sf.dc.http.HttpQuery
      extended bynet.sf.dc.http.IMDBMovieQuery

public class IMDBMovieQuery
extends HttpQuery

Access www.imdb.com to gather movie specific information

Since:
1.3
Version:
DC0.80
Author:
Robert-Jan van der Waals

Constructor Summary
IMDBMovieQuery(java.lang.String searchString)
          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
 
Methods inherited from class net.sf.dc.http.HttpQuery
clean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMDBMovieQuery

public IMDBMovieQuery(java.lang.String searchString)
               throws java.lang.Exception
initializes the IMDB query

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

getIDs

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

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

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