Class TokenizerUtils

java.lang.Object
com.topologi.diffx.load.text.TokenizerUtils

final class TokenizerUtils extends Object
A utility class for tokenizers.
Version:
11 May 2010
  • Constructor Details

    • TokenizerUtils

      private TokenizerUtils()
      Utility class.
  • Method Details

    • getLeadingWhiteSpace

      public static int getLeadingWhiteSpace(CharSequence s)
      Returns the length in characters of the leading white space in the given char sequence.
      Parameters:
      s - the char sequence to look at.
      Returns:
      the number of whitespace characters at the beginning of the sequence..
    • getTrailingWhiteSpace

      public static int getTrailingWhiteSpace(CharSequence s)
      Returns the length in characters of the trailing white spaces in the given char sequence.
      Parameters:
      s - the char sequence to look at.
      Returns:
      the number of whitespace characters at the end of the sequence..