|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 CrosswordSourceCrosswordSource.getGame()public HashMap getParamMap()
getParamMap in interface CrosswordSourceCrosswordSource.getParamMap()public String toString()
toString in class Objectpublic void load()
load in interface CrosswordSourceCrosswordSource.load()
protected URL getGridURL()
throws MalformedURLException,
IOException
MalformedURLException
IOExceptionpublic String getPuzzleId()
CrosswordSourceCrosswordSource.load(String), this same puzzle will be loaded at that
time.
getPuzzleId in interface CrosswordSourcepublic void load(String puzzleId)
CrosswordSource
load in interface CrosswordSourcepuzzleId - 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 | |||||||||