Internet Chess ToolKit
v0.2.0

ictk.boardgame.io
Class GameReader

java.lang.Object
  extended byjava.io.Reader
      extended byjava.io.BufferedReader
          extended byictk.boardgame.io.GameReader
Direct Known Subclasses:
ChessReader

public abstract class GameReader
extends java.io.BufferedReader

reads games in various notations.


Constructor Summary
GameReader(java.io.Reader _ir)
           
 
Method Summary
abstract  Board readBoard()
          read the game Board from the input buffer
abstract  Game readGame()
          read the Game (History, Board, and GameInfo) from the input Buffer
abstract  GameInfo readGameInfo()
          read the GameInfo from the input buffer
abstract  History readHistory()
          read the game History from the input buffer
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameReader

public GameReader(java.io.Reader _ir)
Method Detail

readGame

public abstract Game readGame()
                       throws InvalidGameFormatException,
                              IllegalMoveException,
                              AmbiguousMoveException,
                              java.io.IOException
read the Game (History, Board, and GameInfo) from the input Buffer

Throws:
InvalidGameFormatException
IllegalMoveException
AmbiguousMoveException
java.io.IOException

readGameInfo

public abstract GameInfo readGameInfo()
                               throws java.io.IOException
read the GameInfo from the input buffer

Throws:
java.io.IOException

readHistory

public abstract History readHistory()
                             throws InvalidGameFormatException,
                                    IllegalMoveException,
                                    AmbiguousMoveException,
                                    java.io.IOException
read the game History from the input buffer

Throws:
InvalidGameFormatException
IllegalMoveException
AmbiguousMoveException
java.io.IOException

readBoard

public abstract Board readBoard()
                         throws java.io.IOException
read the game Board from the input buffer

Throws:
java.io.IOException

Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .