chesspresso.pgn
Class PGN

java.lang.Object
  |
  +--chesspresso.pgn.PGN
Direct Known Subclasses:
PGNReader, PGNWriter

public abstract class PGN
extends java.lang.Object

General definitions for the PGN standard. The pgn standard is available at ftp://chess.onenet.net.

Version:
$Revision: 1.1 $
Author:
Bernhard Seybold

Field Summary
static java.lang.String TAG_BLACK
           
static java.lang.String TAG_BLACK_ELO
           
static java.lang.String TAG_DATE
           
static java.lang.String TAG_ECO
           
static java.lang.String TAG_EVENT
           
static java.lang.String TAG_EVENT_DATE
           
static java.lang.String TAG_FEN
           
static java.lang.String TAG_RESULT
           
static java.lang.String TAG_ROUND
           
static java.lang.String TAG_SITE
           
static java.lang.String TAG_WHITE
           
static java.lang.String TAG_WHITE_ELO
           
static char TOK_ASTERISK
           
static char TOK_COMMENT_BEGIN
           
static char TOK_COMMENT_END
           
static char TOK_LBRACKET
           
static char TOK_LINE_BEGIN
           
static char TOK_LINE_COMMENT
           
static char TOK_LINE_END
           
static char TOK_NAG_BEGIN
           
static char TOK_PERIOD
           
static char TOK_PGN_ESCAPE
           
static char TOK_QUOTE
           
static char TOK_RBRACKET
           
static char TOK_TAG_BEGIN
           
static char TOK_TAG_END
           
 
Constructor Summary
PGN()
           
 
Method Summary
static java.lang.String dateToPGNDate(java.util.Date date)
           
static int getYearOfPGNDate(java.lang.String pgnDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOK_QUOTE

public static final char TOK_QUOTE
See Also:
Constant Field Values

TOK_PERIOD

public static final char TOK_PERIOD
See Also:
Constant Field Values

TOK_ASTERISK

public static final char TOK_ASTERISK
See Also:
Constant Field Values

TOK_TAG_BEGIN

public static final char TOK_TAG_BEGIN
See Also:
Constant Field Values

TOK_TAG_END

public static final char TOK_TAG_END
See Also:
Constant Field Values

TOK_LINE_BEGIN

public static final char TOK_LINE_BEGIN
See Also:
Constant Field Values

TOK_LINE_END

public static final char TOK_LINE_END
See Also:
Constant Field Values

TOK_LBRACKET

public static final char TOK_LBRACKET
See Also:
Constant Field Values

TOK_RBRACKET

public static final char TOK_RBRACKET
See Also:
Constant Field Values

TOK_NAG_BEGIN

public static final char TOK_NAG_BEGIN
See Also:
Constant Field Values

TOK_LINE_COMMENT

public static final char TOK_LINE_COMMENT
See Also:
Constant Field Values

TOK_COMMENT_BEGIN

public static final char TOK_COMMENT_BEGIN
See Also:
Constant Field Values

TOK_COMMENT_END

public static final char TOK_COMMENT_END
See Also:
Constant Field Values

TOK_PGN_ESCAPE

public static final char TOK_PGN_ESCAPE
See Also:
Constant Field Values

TAG_EVENT

public static final java.lang.String TAG_EVENT
See Also:
Constant Field Values

TAG_SITE

public static final java.lang.String TAG_SITE
See Also:
Constant Field Values

TAG_DATE

public static final java.lang.String TAG_DATE
See Also:
Constant Field Values

TAG_ROUND

public static final java.lang.String TAG_ROUND
See Also:
Constant Field Values

TAG_WHITE

public static final java.lang.String TAG_WHITE
See Also:
Constant Field Values

TAG_BLACK

public static final java.lang.String TAG_BLACK
See Also:
Constant Field Values

TAG_RESULT

public static final java.lang.String TAG_RESULT
See Also:
Constant Field Values

TAG_EVENT_DATE

public static final java.lang.String TAG_EVENT_DATE
See Also:
Constant Field Values

TAG_WHITE_ELO

public static final java.lang.String TAG_WHITE_ELO
See Also:
Constant Field Values

TAG_BLACK_ELO

public static final java.lang.String TAG_BLACK_ELO
See Also:
Constant Field Values

TAG_ECO

public static final java.lang.String TAG_ECO
See Also:
Constant Field Values

TAG_FEN

public static final java.lang.String TAG_FEN
See Also:
Constant Field Values
Constructor Detail

PGN

public PGN()
Method Detail

getYearOfPGNDate

public static int getYearOfPGNDate(java.lang.String pgnDate)
                            throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

dateToPGNDate

public static java.lang.String dateToPGNDate(java.util.Date date)