Class TextToken

    • Constructor Summary

      Constructors 
      Constructor Description
      TextToken()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getText()
      Returns the entire text between the opening '[' and closing ']'.
      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.SGFToken

        parse
      • Methods inherited from class java.lang.Object

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

      • TextToken

        public TextToken()
    • Method Detail

      • parseContent

        protected boolean parseContent​(java.io.StreamTokenizer st)
                                throws java.io.IOException,
                                       SGFException
        Reads the text in between the first opening '[' and closing ']'. This takes into consideration carriage returns, new lines, escaping ('\'), and special punctuation.
        Specified by:
        parseContent in class SGFToken
        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
      • getText

        public java.lang.String getText()
        Returns the entire text between the opening '[' and closing ']'.