|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.caff.maze.TemporaryDataStorage
de.caff.maze.FileDataStorage
public class FileDataStorage
Data storage using a system access.
![]() |
![]() |
Field Summary |
---|
Fields inherited from class de.caff.maze.TemporaryDataStorage |
---|
persistentData |
Constructor Summary | |
---|---|
FileDataStorage(SystemAccess systemAccess)
Constructor. |
Method Summary | |
---|---|
(package private) boolean |
load()
Load data. |
(package private) boolean |
save()
Save data. |
(package private) boolean |
saveImage(java.awt.image.RenderedImage image)
Save an image. |
(package private) boolean |
saveToPainter(Maze maze,
MazePaintPropertiesProvider properties,
SystemAccess.FileType fileType,
OutputMazePainterCreator painterCreator)
Save using a generic output painter. |
void |
storePersistentData()
Store all persistent data. |
Methods inherited from class de.caff.maze.TemporaryDataStorage |
---|
getBoolean, getColor, getDouble, getInt, getLong, getString, hasKey, setBoolean, setColor, setDouble, setInt, setLong, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDataStorage(SystemAccess systemAccess)
systemAccess
- system access used for access of the underlying file systemMethod Detail |
---|
boolean load() throws java.lang.Exception
java.lang.Exception
- on access and i/o errors
true
if data could be loaded successfully, otherwise false
boolean save() throws java.lang.Exception
java.lang.Exception
- on access and i/o errors
true
if data could be saved successfully, otherwise false
boolean saveImage(java.awt.image.RenderedImage image) throws java.lang.Exception
java.lang.Exception
- on access and i/o errorsimage
- image to save
true
if the image could be saved successfully, otherwise false
boolean saveToPainter(Maze maze, MazePaintPropertiesProvider properties, SystemAccess.FileType fileType, OutputMazePainterCreator painterCreator) throws java.lang.Exception
java.lang.Exception
- on access and i/o errorsmaze
- maze to saveproperties
- paint properties to usefileType
- file type to save topainterCreator
- creator for the output maze painter
true
if the created file could be saved successfully, otherwise false
public void storePersistentData()
storePersistentData
in interface DataStorage
storePersistentData
in class TemporaryDataStorage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |