public final void reset() {
    currentLocator = null;
    currentDocument = factory.document(null);
    currentElement = null;
    atRoot = true;
    inDTD = false;
    inInternalSubset = false;
    previousCDATA = false;
    inCDATA = false;
    suppress = false;
    entityDepth = 0;
    declaredNamespaces.clear();
    internalSubset.setLength(0);
    textBuffer.clear();
    externalEntities.clear();
    resetSubCLass();
  }
public final void reset()