String debug = System.getProperty("gnu.xml.debug.input"); if (debug != null) { try { File file = File.createTempFile(debug, ".xml"); in = new TeeInputStream(in, new FileOutputStream(file)); } catch (IOException e) { RuntimeException e2 = new RuntimeException(); e2.initCause(e); throw e2; } }
  public XMLParser(InputStream in, String systemId,                   boolean validating,                   boolean namespaceAware,                   boolean coalescing,                   boolean replaceERefs,                   boolean externalEntities,                   boolean supportDTD,                   boolean baseAware,                   boolean stringInterning,                   boolean extendedEventTypes,                   XMLReporter reporter,                   XMLResolver resolver)  {    this.validating = validating;    this.namespaceAware = namespaceAware;    this.coalescing = coalescing;    this.replaceERefs = replaceERefs;    this.externalEntities = externalEntities;    this.supportDTD = supportDTD;    this.baseAware = baseAware;    this.stringInterning = stringInterning;    this.extendedEventTypes = extendedEventTypes;    this.reporter = reporter;    this.resolver = resolver;    if (validating)      {        validationStack = new LinkedList();        ids = new HashSet();        idrefs = new HashSet();      }    pushInput(new Input(in, null, null, systemId, null, null, false, true));  }