public static void saveReport ( Report report , String path ) { FileOutputStream fos = null ; try { fos = new FileOutputStream ( path ) ; saveReport ( report , fos ) ; } catch ( Exception ex ) { LOG . error ( ex . getMessage ( ) , ex ) ; ex . printStackTrace ( ) ; } finally { if ( fos != null ) { try { fos . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } }
Write a report object to a file at specified path