code: private boolean isWhitespace(Chars data){
          char chars[] = data.array();
          int end = data.offset()+data.length();
          for(int i=data.offset(); i<end; i++){
              if(!XMLChar.isSpace(chars[i]))
                  return false;
          }
          return true;
      }
docs: /*-------------------------------------------------[ Misc ]---------------------------------------------------