chesspresso.pgn
Class PGNWriter

java.lang.Object
  |
  +--chesspresso.pgn.PGN
        |
        +--chesspresso.pgn.PGNWriter

public class PGNWriter
extends PGN

A PGN writer is able to write a game (collection) in PGN syntax.

Version:
$Revision: 1.1 $
Author:
Bernhard Seybold

Field Summary
 
Fields inherited from class chesspresso.pgn.PGN
TAG_BLACK, TAG_BLACK_ELO, TAG_DATE, TAG_ECO, TAG_EVENT, TAG_EVENT_DATE, TAG_FEN, TAG_RESULT, TAG_ROUND, TAG_SITE, TAG_WHITE, TAG_WHITE_ELO, TOK_ASTERISK, TOK_COMMENT_BEGIN, TOK_COMMENT_END, TOK_LBRACKET, TOK_LINE_BEGIN, TOK_LINE_COMMENT, TOK_LINE_END, TOK_NAG_BEGIN, TOK_PERIOD, TOK_PGN_ESCAPE, TOK_QUOTE, TOK_RBRACKET, TOK_TAG_BEGIN, TOK_TAG_END
 
Constructor Summary
PGNWriter(java.io.OutputStream out)
           
PGNWriter(java.io.PrintStream out)
           
 
Method Summary
 void setCharactersPerLine(int chars)
           
 void write(Game game)
           
 void write(GameModelIterator iterator)
           
 
Methods inherited from class chesspresso.pgn.PGN
dateToPGNDate, getYearOfPGNDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGNWriter

public PGNWriter(java.io.OutputStream out)

PGNWriter

public PGNWriter(java.io.PrintStream out)
Method Detail

setCharactersPerLine

public void setCharactersPerLine(int chars)

write

public void write(GameModelIterator iterator)

write

public void write(Game game)