public void startNewStream(Reader reader, boolean isInternalEntity) {
    StackedReader oldReader = currentReader;
    readers.push(currentReader);
    currentReader = new StackedReader();

    if (isInternalEntity) {
      currentReader.lineReader = null;
      currentReader.pbReader = new PushbackReader(reader, 2);
    }
    else {
      currentReader.lineReader = new LineNumberReader(reader);
      currentReader.pbReader = new PushbackReader(currentReader.lineReader, 2);
    }

    currentReader.systemId = oldReader.systemId;
    currentReader.publicId = oldReader.publicId;
  }
public void startNewStream(Reader reader, boolean isInternalEntity)