@ Deprecated public static boolean writeObjectToFile ( Object obj , String file ) { try { writeObjectToFileOrDie ( obj , file , LOGGER ) ; return true ; } catch ( Exception e ) { LOGGER . error ( e . getClass ( ) + ": writeObjectToFile(" + file + ") encountered exception: " + e . getMessage ( ) , e ) ; return false ; } }
Writes an object to a file .