com.blackledge.david.game.crossword
Class PuzFile

java.lang.Object
  extended by com.blackledge.david.game.crossword.PuzFile

public class PuzFile
extends Object

Reads in a .puz file (Across Lite format) and makes the raw information available. Doesn't yet support notes, and currently has an upper limit on clue size it can handle. Doesn't support any checksum information Thanks to http://www.joshisanerd.com/puz/

Version:
$Revision$
Author:
David Blackledge (http://david.blackledge.com)

Constructor Summary
PuzFile(InputStream stream)
           
 
Method Summary
 String getAuthor()
           
 String[] getClues()
           
 String getCopyright()
           
 String getGrid()
           
 byte getHeight()
           
 short getNumClues()
           
 String getSolution()
           
 String getTitle()
           
 byte getWidth()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PuzFile

public PuzFile(InputStream stream)
        throws IOException
Throws:
IOException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)
                 throws FileNotFoundException,
                        IOException
Throws:
FileNotFoundException
IOException

getClues

public String[] getClues()
Returns:
all clues for this puzzle. in numeric order, across before down when there are two sharing same number.

getHeight

public byte getHeight()

getWidth

public byte getWidth()

getGrid

public String getGrid()

getSolution

public String getSolution()

getAuthor

public String getAuthor()

getCopyright

public String getCopyright()

getTitle

public String getTitle()

getNumClues

public short getNumClues()