public static Object deserialize ( byte [ ] arr ) { try ( InputStream bis = new ByteArrayInputStream ( arr ) ; ObjectInputStream ois = new ObjectInputStream ( bis ) ) { return ois . readObject ( ) ; } catch ( IOException ex ) { throw new UncheckedIOException ( ex ) ; } catch ( ClassNotFoundException ex ) { throw new RuntimeException ( ex ) ; } }
Deserializes the byte array .