public void doOneDataset ( InvDataset ds ) { if ( debug ) System . out . println ( "doDataset " + ds . getName ( ) ) ; if ( isDatasetUseable ( ds , messBuffer ) ) { String id = StringUtil2 . replace ( ds . getID ( ) , "/" , "-" ) ; String fileOutName = fileDir + "/" + id + ".dif.xml" ; try { OutputStream out = new BufferedOutputStream ( new FileOutputStream ( fileOutName ) ) ; // writeOneEntry(ds, System.out, mess); writeOneEntry ( ds , out , messBuffer ) ; out . close ( ) ; messBuffer . append ( " OK on Write\n" ) ; } catch ( IOException ioe ) { messBuffer . append ( "DIFWriter failed on write " + ioe . getMessage ( ) + "\n" ) ; log . error ( "DIFWriter failed on write " + ioe . getMessage ( ) , ioe ) ; } } }
Write a DIF record for a specific dataset