code: public int getSpaces(char[] array, int currentIndex, StringBuffer velocityBlock,
          VelocityParserContext context)
      {
          int i = currentIndex;
  
          while (i < array.length && Character.isWhitespace(array[i])) {
              ++i;
          }
  
          if (velocityBlock != null) {
              velocityBlock.append(array, currentIndex, i - currentIndex);
          }
  
          return i;
      }
docs: Match a group of space characters (ASCII 32).
  
  @param array the source to parse
  @param currentIndex the current index in the <code>array</code>
  @param velocityBlock the buffer where to append matched velocity block
  @param context the parser context to put some informations
  @return the index in the <code>array</code> after the matched block