void processDumpFile ( MwDumpFile dumpFile , MwDumpFileProcessor dumpFileProcessor ) { try ( InputStream inputStream = dumpFile . getDumpFileStream ( ) ) { dumpFileProcessor . processDumpFileContents ( inputStream , dumpFile ) ; } catch ( FileAlreadyExistsException e ) { logger . error ( "Dump file " + dumpFile . toString ( ) + " could not be processed since file " + e . getFile ( ) + " already exists. Try deleting the file or dumpfile directory to attempt a new download." ) ; } catch ( IOException e ) { logger . error ( "Dump file " + dumpFile . toString ( ) + " could not be processed: " + e . toString ( ) ) ; } }
Processes one dump file with the given dump file processor handling exceptions appropriately .