|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.tools.FSGConverter
public class FSGConverter
Class for converting FreeCol Savegames (fsg-files).
getFSGConverter()| Field Summary | |
|---|---|
private static FSGConverter |
singleton
A singleton object of this class. |
| Constructor Summary | |
|---|---|
private |
FSGConverter()
Creates an instance of FSGConverter |
| Method Summary | |
|---|---|
void |
convertToXML(java.io.File in,
java.io.File out)
Converts the given input file to an uncompressed and indented XML-file. |
void |
convertToXML(java.io.InputStream in,
java.io.OutputStream out)
Converts the data from the given input stream to an uncompressed and indented text to the output stream. |
static FSGConverter |
getFSGConverter()
Gets an object for converting FreeCol Savegames. |
static void |
main(java.lang.String[] args)
An entry point for converting FreeCol Savegames. |
private static void |
printUsage()
Prints the usage of this program to standard out. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static FSGConverter singleton
getFSGConverter()| Constructor Detail |
|---|
private FSGConverter()
FSGConverter
| Method Detail |
|---|
public static FSGConverter getFSGConverter()
public void convertToXML(java.io.File in,
java.io.File out)
throws java.io.FileNotFoundException,
java.io.IOException
in - The input file.out - The output file. This file will be overwritten
if it already exists.
java.io.FileNotFoundException - if the given input file could not be found.
java.io.IOException - if thrown while reading or writing the files.
public void convertToXML(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - The input stream.out - The output stream.
java.io.IOException - if thrown while reading or writing the streams.private static void printUsage()
public static void main(java.lang.String[] args)
args - The command-line parameters.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||