de.spieleck.app.turn
Class FileProxy
java.lang.Object
de.spieleck.app.turn.FileProxy
public class FileProxy
- extends java.lang.Object
Handle strange editable fileformats.
- This is kind of a human editable compact serialization format.
- The Methods readRound() and writeRound() must work complementary.
- Finally: This has been factored out to be replaceable.
$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/FileProxy.java $
- Version:
- $Revision: 2 $ $Date: 2006-03-20 14:33:27 +0100 (Mo, 20 Mrz 2006) $ $Author: nestefan $
- Author:
- Frank S. Nestel, $Author: nestefan $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOGAMERESULT
public static final GameResult[] NOGAMERESULT
SEP
public static final java.lang.String SEP
- See Also:
- Constant Field Values
SPLITTER
public static final java.util.regex.Pattern SPLITTER
FileProxy
public FileProxy(ScoringMode scoringMode,
PlayerRegistry pRegistry)
makeRoundName
public static java.lang.String makeRoundName(int round)
readPlayers
public void readPlayers(LineSource ls)
throws java.io.IOException
- Read in player file
- Throws:
java.io.IOException
readRound
public GameResult[] readRound(LineSource ls,
boolean check)
throws java.lang.Exception
- Read one round.
- Throws:
java.lang.Exception
writeRound
public void writeRound(java.io.PrintWriter bw,
java.lang.String msg,
GameResult[] games)
throws java.io.IOException
- Write one round.
- Throws:
java.io.IOException