|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Grid GUI Support Package:
The GridDataFileHandler
interface specifies methods for
reading grid information from a file and writing it to a file.
Method Summary | |
Grid |
readGrid(java.io.File file)
Reads information about a grid from an initial configuration data file and creates the grid. |
void |
writeGrid(Grid grid,
java.io.File file)
Writes information about a grid into a data file. |
Method Detail |
public Grid readGrid(java.io.File file) throws java.io.FileNotFoundException
file
- java.io.File object from which to read
java.io.FileNotFoundException
- if file cannot be opened
java.lang.RuntimeException
- if invalid information is read from filepublic void writeGrid(Grid grid, java.io.File file) throws java.io.IOException
grid
- grid to write to filefile
- java.io.File object to which to write
java.io.IOException
- if error writing to file
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |