rjw.dc.http
Class IMDBQuery
java.lang.Object
|
+--rjw.dc.http.IMDBQuery
- public class IMDBQuery
- extends java.lang.Object
Access www.imdb.com to gather movie specific information
- Since:
- 1.2
- Version:
- 3.03
- Author:
- Robert-Jan van der Waals
Constructor Summary |
IMDBQuery(java.lang.String searchString)
initializes the IMDB query |
Method Summary |
void |
fillImdbData(java.lang.String sID,
HttpConnection connection)
Reads the information from www.imdb.com |
java.lang.String[] |
getIDs(HttpConnection connection)
Searches for the maching ID's from the search result(s) |
java.lang.String |
getValue(java.lang.Object identifier)
|
java.lang.String |
trim(java.lang.String sRaw)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ID
public static final java.lang.Object _ID
_URL
public static final java.lang.Object _URL
_TITLE
public static final java.lang.Object _TITLE
_YEAR
public static final java.lang.Object _YEAR
_DIRECTOR
public static final java.lang.Object _DIRECTOR
_WRITER
public static final java.lang.Object _WRITER
_GENRE
public static final java.lang.Object _GENRE
_TAGLINE
public static final java.lang.Object _TAGLINE
_TAGLINEURL
public static final java.lang.Object _TAGLINEURL
_PLOT
public static final java.lang.Object _PLOT
_PLOTURL
public static final java.lang.Object _PLOTURL
_RATING
public static final java.lang.Object _RATING
_VOTES
public static final java.lang.Object _VOTES
_PLACE
public static final java.lang.Object _PLACE
_ACTORS
public static final java.lang.Object _ACTORS
_COUNTRY
public static final java.lang.Object _COUNTRY
_RUNTIME
public static final java.lang.Object _RUNTIME
IMDBQuery
public IMDBQuery(java.lang.String searchString)
throws java.lang.Exception
- initializes the IMDB query
- Parameters:
searchString
- the string on which will be searched
getIDs
public java.lang.String[] getIDs(HttpConnection connection)
throws java.lang.Exception
- Searches for the maching ID's from the search result(s)
java.lang.Exception
fillImdbData
public void fillImdbData(java.lang.String sID,
HttpConnection connection)
throws java.lang.Exception
- Reads the information from www.imdb.com
- Parameters:
sID
- the movie ID from www.imdb.com
java.lang.Exception
getValue
public java.lang.String getValue(java.lang.Object identifier)
trim
public java.lang.String trim(java.lang.String sRaw)