code: public <T> T deser(Object obj, byte[] array, int offset, int length) throws IOException {
  		Map<Class, Deserializer> deserializers = cachedDeserializers.get();
  		Deserializer deSer = deserializers.get(obj.getClass());
  		if(deSer == null) {
  			deSer = serialization.getDeserializer(obj.getClass());
  			deserializers.put(obj.getClass(), deSer);
  		}
  		DataInputBuffer baIs = cachedInputStream.get();
  		baIs.reset(array, offset, length);
  		deSer.open(baIs);
  		obj = deSer.deserialize(obj);
  		deSer.close();
  		baIs.close();
  		return (T) obj;
  	}
docs: Deserialize an object using Hadoop serialization from a byte array. The
  object cannot be null.