ictk.boardgame.chess.net.ics.fics.event
Class FICSBoardUpdateStyle12Parser
java.lang.Object
ictk.boardgame.chess.net.ics.event.ICSEventParser
ictk.boardgame.chess.net.ics.fics.event.FICSBoardUpdateStyle12Parser
- public class FICSBoardUpdateStyle12Parser
- extends ICSEventParser
This class parses ICS Style12 Board Update events.
<12> r-bq-rk- pp-nppbp -----np- --pp---- ---P---- --PBPN-- PP-N-PPP R-BQR-K- B -1 0 0 0 0 2 2 bbbb Simpan -2 3 0 39 39 177810 171259 8 R/f1-e1 (0:00.000) Re1 0 0 0
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
public static FICSBoardUpdateStyle12Parser singleton
masterPattern
public static final java.util.regex.Pattern masterPattern
getInstance
public static ICSEventParser getInstance()
createICSEvent
public ICSEvent createICSEvent(java.util.regex.Matcher match)
- Description copied from class:
ICSEventParser
- Instantiantes a new ICSEvent of the appropriate type for this
parser. If the Matcher passed in is not from this parser the results
are undefined.
- Specified by:
createICSEvent
in class ICSEventParser
assignMatches
public void assignMatches(java.util.regex.Matcher m,
ICSEvent event)
- Description copied from class:
ICSEventParser
- Takes the data from the Matcher object and assigns them to the
data fields of the ICSEvent object. This will clear all data in the
ICSEvent object if there was any to begin with. This function can
be used if you wish to recycle ICSEvent objects for some reason.
- Specified by:
assignMatches
in class ICSEventParser
toNative
public java.lang.String toNative(ICSEvent event)
- Specified by:
toNative
in class ICSEventParser