public static Object deserialize(byte[] bytes) {
		
		Object result = null;
		
		if (isEmpty(bytes)) {
			return null;
		}

		try {
			ByteArrayInputStream byteStream = new ByteArrayInputStream(bytes);
			try {
				ObjectInputStream objectInputStream = new ObjectInputStream(byteStream);
				try {
					result = objectInputStream.readObject();
				}
				catch (ClassNotFoundException ex) {
					throw new Exception("Failed to deserialize object type", ex);
				}
			}
			catch (Throwable ex) {
				throw new Exception("Failed to deserialize", ex);
			}
		} catch (Exception e) {
			logger.error("Failed to deserialize",e);
		}
		return result;
	}
public static Object deserialize ( byte [ ] bytes ) { Object result = null ; if ( isEmpty ( bytes ) ) { return null ; } try { ByteArrayInputStream byteStream = new ByteArrayInputStream ( bytes ) ; try { ObjectInputStream objectInputStream = new ObjectInputStream ( byteStream ) ; try { result = objectInputStream . readObject ( ) ; } catch ( ClassNotFoundException ex ) { throw new Exception ( "Failed to deserialize object type" , ex ) ; } } catch ( Throwable ex ) { throw new Exception ( "Failed to deserialize" , ex ) ; } } catch ( Exception e ) { logger . error ( "Failed to deserialize" , e ) ; } return result ; }
反序列化
@param bytes
@return