|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.blackledge.david.game.crossword.PuzCrosswordSource
public class PuzCrosswordSource
Interface to download the .puz format crosswords and build a
CrosswordPuzzle
object with that data.
Constructor Summary | |
---|---|
PuzCrosswordSource()
|
Method Summary | |
---|---|
CrosswordPuzzle |
getGame()
Return the game object. |
protected URL |
getGridURL()
|
HashMap |
getParamMap()
All the params of the quizland page |
String |
getPuzzleId()
Returns a unique id (if available) representing the current puzzle. |
void |
load()
Load the quizland crossword-of-the-day into the game object and validate it. |
void |
load(String puzzleId)
Load the source into the game object and validate it. |
static void |
main(String[] args)
Simple main to show it work and spit it out to the command line. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PuzCrosswordSource()
Method Detail |
---|
public static void main(String[] args)
args
- public CrosswordPuzzle getGame()
CrosswordSource.load()
getGame
in interface CrosswordSource
CrosswordSource.getGame()
public HashMap getParamMap()
getParamMap
in interface CrosswordSource
CrosswordSource.getParamMap()
public String toString()
toString
in class Object
public void load()
load
in interface CrosswordSource
CrosswordSource.load()
protected URL getGridURL() throws MalformedURLException, IOException
MalformedURLException
IOException
public String getPuzzleId()
CrosswordSource
CrosswordSource.load(String)
, this same puzzle will be loaded at that
time.
getPuzzleId
in interface CrosswordSource
public void load(String puzzleId)
CrosswordSource
load
in interface CrosswordSource
puzzleId
- a string previuosly returned from CrosswordSource.getPuzzleId()
for this source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |