|
Internet Chess ToolKit v0.2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Reader
java.io.BufferedReader
ictk.boardgame.io.GameReader
ictk.boardgame.chess.io.ChessReader
ictk.boardgame.chess.io.PGNReader
PGNReader reads PGN formated files
Field Summary | |
static long |
DEBUG
mask for Log.debug() |
Constructor Summary | |
PGNReader(java.io.Reader _ir)
|
Method Summary | |
Game |
getGame()
gets the last game read. |
Board |
readBoard()
looks for a readable board notation (FEN) in the GameInfo header |
Game |
readGame()
read the Game (History, Board, and GameInfo) from the input Buffer |
GameInfo |
readGameInfo()
reads the game info header portion of the PGN file |
History |
readHistory()
reads the history list which must be in SAN format. |
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 |
Field Detail |
public static final long DEBUG
Constructor Detail |
public PGNReader(java.io.Reader _ir)
Method Detail |
public Game readGame() throws InvalidGameFormatException, IllegalMoveException, AmbiguousMoveException, java.io.IOException
GameReader
readGame
in class GameReader
InvalidGameFormatException
IllegalMoveException
AmbiguousMoveException
java.io.IOException
public Game getGame()
getGame
in class ChessReader
public GameInfo readGameInfo() throws java.io.IOException
readGameInfo
in class GameReader
java.io.IOException
public History readHistory() throws InvalidGameFormatException, IllegalMoveException, AmbiguousMoveException, java.io.IOException
readHistory
in class GameReader
InvalidGameFormatException
IllegalMoveException
AmbiguousMoveException
java.io.IOException
public Board readBoard() throws java.io.IOException
readBoard
in class GameReader
java.io.IOException
|
Submit a bug or feature Visit the Website Internet Chess ToolKit is licensed under the GPL v2 . |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |