public static int serialize ( final File directory , String name , Object obj ) { try ( FileOutputStream stream = new FileOutputStream ( new File ( directory , name ) ) ) { return serialize ( stream , obj ) ; } catch ( IOException e ) { throw new ReportGenerationException ( e ) ; } }
Serialize specified object to directory with specified name .