@Component public class PgnMarshallerImpl extends Object implements PgnMarshaller
| Constructor and Description |
|---|
PgnMarshallerImpl() |
PgnMarshallerImpl(ChessRules chessRules) |
| Modifier and Type | Method and Description |
|---|---|
String |
convertMoveToPgn(ChessPosition position,
ChessMovePath move) |
ChessMovePath |
convertPgnToMove(ChessPosition position,
String pgnMove) |
String |
exportGame(String white,
String black,
Date startDate,
Collection<String> moves) |
Collection<String> |
importGame(InputStream pgnStream) |
protected ChessMovePath |
parseStandardMove(String pgnMove,
ChessPosition position) |
public PgnMarshallerImpl()
public PgnMarshallerImpl(ChessRules chessRules)
public String convertMoveToPgn(ChessPosition position, ChessMovePath move) throws IllegalMoveException
convertMoveToPgn in interface PgnMarshallerIllegalMoveExceptionpublic ChessMovePath convertPgnToMove(ChessPosition position, String pgnMove) throws PgnMoveException
convertPgnToMove in interface PgnMarshallerPgnMoveExceptionprotected ChessMovePath parseStandardMove(String pgnMove, ChessPosition position) throws PgnMoveException
PgnMoveExceptionpublic String exportGame(String white, String black, Date startDate, Collection<String> moves)
exportGame in interface PgnMarshallerpublic Collection<String> importGame(InputStream pgnStream) throws IOException
importGame in interface PgnMarshallerIOExceptionCopyright © 2015. All Rights Reserved.