|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.io.FreeColDataFile
net.sf.freecol.common.io.FreeColSavegameFile
public class FreeColSavegameFile
Represents a FreeCol savegame.
| Field Summary | |
|---|---|
static java.lang.String |
CLIENT_OPTIONS
The name of the file that contains the ClientOptions saved with the game. |
private static java.util.logging.Logger |
logger
|
static java.lang.String |
SAVEGAME_FILE
The name of the file that contains the actual savegame. |
static java.lang.String |
SAVEGAME_PROPERTIES
The name of a properties file that contains information about the saved game, such as the size of the map, the date and time it was started, and so on. |
static java.lang.String |
THUMBNAIL_FILE
The name of the image file that contains the map thumbnail, i.e. |
| Constructor Summary | |
|---|---|
FreeColSavegameFile(java.io.File file)
|
|
| Method Summary | |
|---|---|
protected java.lang.String[] |
getFileEndings()
File endings that are supported for this type of data file. |
java.io.BufferedInputStream |
getSavegameInputStream()
Gets the input stream to the savegame data. |
| Methods inherited from class net.sf.freecol.common.io.FreeColDataFile |
|---|
getFileFilter, getFileNames, getInputStream, getResourceMapping, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger logger
public static final java.lang.String SAVEGAME_FILE
public static final java.lang.String SAVEGAME_PROPERTIES
MapGeneratorOptionsDialog,
for example.
public static final java.lang.String CLIENT_OPTIONS
ClientOptions saved with the game.
public static final java.lang.String THUMBNAIL_FILE
MapGeneratorOptionsDialog, in
particular.
| Constructor Detail |
|---|
public FreeColSavegameFile(java.io.File file)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.io.BufferedInputStream getSavegameInputStream()
throws java.io.IOException
InputStream to the file
"savegame.xml" within this data file.
java.io.IOException - if thrown while opening the
input stream.protected java.lang.String[] getFileEndings()
getFileEndings in class FreeColDataFile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||