Jacson

de.spieleck.app.turn
Class FileProxy

java.lang.Object
  extended by de.spieleck.app.turn.FileProxy

public class FileProxy
extends java.lang.Object

Handle strange editable fileformats.

$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 $

Field Summary
static GameResult[] NOGAMERESULT
           
static java.lang.String SEP
           
static java.util.regex.Pattern SPLITTER
           
 
Constructor Summary
FileProxy(ScoringMode scoringMode, PlayerRegistry pRegistry)
           
 
Method Summary
static java.lang.String makeRoundName(int round)
           
 void readPlayers(LineSource ls)
          Read in player file
 GameResult[] readRound(LineSource ls, boolean check)
          Read one round.
 void writeRound(java.io.PrintWriter bw, java.lang.String msg, GameResult[] games)
          Write one round.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FileProxy

public FileProxy(ScoringMode scoringMode,
                 PlayerRegistry pRegistry)
Method Detail

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

spieleck.de