de.java_chess.javaChess.pgn
Class PGNOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FileOutputStream
              |
              +--de.java_chess.javaChess.pgn.PGNOutputStream

public class PGNOutputStream
extends java.io.FileOutputStream

This class handes PGN output streams.


Constructor Summary
PGNOutputStream(java.io.File file)
          Create a new PGNOutputStream instance.
 
Method Summary
 void write(GameNotation gameNotation)
          Write the notation of a game.
 
Methods inherited from class java.io.FileOutputStream
close, finalize, getFD, write, write, write
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGNOutputStream

public PGNOutputStream(java.io.File file)
                throws java.io.IOException
Create a new PGNOutputStream instance.
Parameters:
file - The file to write into.
Method Detail

write

public final void write(GameNotation gameNotation)
                 throws java.io.IOException
Write the notation of a game.
Parameters:
gameNotation - The notation of the game.