Class ParserUtils


  • public class ParserUtils
    extends java.lang.Object
    Common helpers for namespace file parsers.
    Author:
    K. Benedyczak
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkEndOfLine​(char[] chars, int j)  
      static int checkToken​(java.lang.String token, char[] chars, int offset, boolean caseSensitive)  
      static int checkTokenSoft​(java.lang.String token, char[] chars, int offset, boolean caseSensitive)  
      • Methods inherited from class java.lang.Object

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

      • ParserUtils

        public ParserUtils()
    • Method Detail

      • checkToken

        public static int checkToken​(java.lang.String token,
                                     char[] chars,
                                     int offset,
                                     boolean caseSensitive)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • checkTokenSoft

        public static int checkTokenSoft​(java.lang.String token,
                                         char[] chars,
                                         int offset,
                                         boolean caseSensitive)
      • checkEndOfLine

        public static void checkEndOfLine​(char[] chars,
                                          int j)
                                   throws java.io.IOException
        Throws:
        java.io.IOException