private Map deserializeMap ( File file ) { Map < ? , ? > map ; try ( ObjectInputStream is = new ObjectInputStream ( new BufferedInputStream ( new FileInputStream ( file ) ) ) ) { map = ( Map < ? , ? > ) is . readObject ( ) ; } catch ( Exception e ) { logger . error ( e . getLocalizedMessage ( ) , e ) ; return null ; } return map ; }
Deserialize a map