|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMaze.MazeFactory
public static class Maze.MazeFactory
MazeFactory is a Factory Design Pattern that generates a new Maze. It should throw a malformed input exception, but I didn't have time to go through and fix that. It currently exits if it hits a parse error.
Constructor Summary | |
---|---|
Maze.MazeFactory()
|
Method Summary | |
---|---|
(package private) static Maze |
parseMaze(java.lang.String filename)
parseMaze takes a file in and tries to generate a Maze from that file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Maze.MazeFactory()
Method Detail |
---|
static Maze parseMaze(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
filename
- Name of file with data to generate a Maze.
java.io.FileNotFoundException
- Thrown if the file cannot be found.
java.io.IOException
- Thrown on a generic IO Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |