static private char[] skipWhitespacesPrefix(char[] data){
  for (int i=0; i < data.length; i++) {
    if (!XMLChar.isSpace(data[i])) {
      if (i == 0) {
        return data;
      }
 else {
        return Arrays.copyOfRange(data,i,data.length);
      }
    }
  }
  return new char[0];
}

static private char [ ] skipWhitespacesPrefix ( char [ ] data ) { for ( int i = 0 ; i < data . length ; i ++ ) { if ( ! XMLChar . isSpace ( data [ i ] ) ) { if ( i == 0 ) { return data ; } else { return Arrays . copyOfRange ( data , i , data . length ) ; } } } return new char [ 0 ] ; }
private method that skips whitespaces at the beginning of the data .
