Class TokenTypeUtils


  • public final class TokenTypeUtils
    extends Object
    Utility methods for working with Tokenizer attributes.
    • Method Detail

      • maskType

        public static int maskType​(int rawType)
        Mask the given raw token type and leave just the token type bits.
      • isFieldSeparator

        public static boolean isFieldSeparator​(int type)
        Returns true if the given type has Tokenizer.TF_SEPARATOR_FIELD set.
      • isTerminator

        public static boolean isTerminator​(int type)
        Returns true if the given type has Tokenizer.TF_TERMINATOR set.