code: public void readDump() throws IOException {
  		try {
  			SAXParserFactory factory = SAXParserFactory.newInstance();
  			factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, false);
  			SAXParser parser = factory.newSAXParser();
  
  			parser.parse(input, this);
  		} catch (ParserConfigurationException | SAXException e) {
  			throw new IOException(e);
  		}
  		writer.close();
  	}
docs: Reads through the entire XML dump on the input stream, sending events to
  the {@link DumpWriter} as it goes. May throw exceptions on invalid input or due
  to problems with the output.
  
  @throws IOException Thrown if errors occurred during parsing.