Class NumberToken

    • Constructor Summary

      Constructors 
      Constructor Description
      NumberToken()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract float getDefault()  
      float getNumber()
      Returns the number associated with this token.
      protected boolean parseContent​(java.io.StreamTokenizer st)
      Reads the text in between the first opening '[' and closing ']'.
      • Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.TextToken

        getText
      • Methods inherited from class com.barrybecker4.ca.dj.jigo.sgf.tokens.SGFToken

        parse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NumberToken

        public NumberToken()
    • Method Detail

      • parseContent

        protected boolean parseContent​(java.io.StreamTokenizer st)
                                throws java.io.IOException,
                                       SGFException
        Description copied from class: TextToken
        Reads the text in between the first opening '[' and closing ']'. This takes into consideration carriage returns, new lines, escaping ('\'), and special punctuation.
        Overrides:
        parseContent in class TextToken
        Parameters:
        st - - The stream which contains characters from an SGF file.
        Returns:
        true - The content was parsed successfully.
        Throws:
        SGFException - - Something quite nasty happened.
        java.io.IOException
      • getDefault

        protected abstract float getDefault()
      • getNumber

        public float getNumber()
        Returns the number associated with this token.