public void readDump() throws IOException {
  try {
    SAXParserFactory factory=SAXParserFactory.newInstance();
    SAXParser parser=factory.newSAXParser();
    parser.parse(input,this);
  }
 catch (  ParserConfigurationException e) {
    throw new IOException(e);
  }
catch (  SAXException e) {
    throw new IOException(e);
  }
  writer.close();
}

public void readDump ( ) throws IOException { try { SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; SAXParser parser = factory . newSAXParser ( ) ; parser . parse ( input , this ) ; } catch ( ParserConfigurationException e ) { throw new IOException ( e ) ; } catch ( SAXException e ) { throw new IOException ( e ) ; } writer . close ( ) ; }
reads through the entire xml dump on the input stream , sending events to the dumpwriter as it goes . may throw exceptions on invalid input or due to problems with the output .
