public final static < T extends FastSerializable > T deserialize ( final byte [ ] data , final Class < T > expectedType ) throws IOException { final FastDeserializer in = new FastDeserializer ( data ) ; return in . readObject ( expectedType ) ; }
Read an object from its byte array representation . This is a shortcut utility method useful when only a single object needs to be deserialized .