code: public boolean hasData() {
          int apos = token.length - 1;
          int rpos = pos - 1;
          for (; rpos > -1 && apos > -1; rpos--, apos--) {
              if (buffer2[rpos] != -1) {
                  return true;
              }
          }
          for (rpos = buffer2.length - 1; apos > -1; rpos--, apos--) {
              if (buffer2[rpos] != -1) {
                  return true;
              }
          }
          return false;
      }
docs: Has scan buffer any data?
  @return true if it has data