Code example for ObjectInputStream

Methods: closereadObject

0
    } 
  }*/ 
 
  @Override 
  public Object deserialize(byte[] so) throws IOException, ClassNotFoundException {
    ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(so));
    try { 
      return ois.readObject();
    } finally { 
      ois.close();
    } 
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java