integration-impl/src/main/java/se/idsec/signservice/integration/dss/SignRequestWrapper.java
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
    try {
      final byte[] bytes = (byte[]) in.readObject();
      final Document document = DOMUtils.bytesToDocument(bytes);
      this.signRequest = JAXBUnmarshaller.unmarshall(document, SignRequest.class);
    }
    catch (JAXBException | InternalXMLException e) {
      throw new IOException("Could not restore SignRequest", e);
    }
  }
/**
   * For deserialization of the object
   * 
   * @param in
   *          the input stream
   * @throws IOException
   *           for errors
   * @throws ClassNotFoundException
   *           not thrown by this method
   */
For deserialization of the object

@param in
the input stream
@throws IOException
for errors
@throws ClassNotFoundException
not thrown by this method
For deserialization of the object @param in the input stream @throws IOException for errors @throws ClassNotFoundException not thrown by this method
private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {
    try {
      final byte[] bytes = (byte[]) in.readObject();
      final Document document = DOMUtils.bytesToDocument(bytes);
      this.signRequest = JAXBUnmarshaller.unmarshall(document, SignRequest.class);
    }
    catch (JAXBException | InternalXMLException e) {
      throw new IOException("Could not restore SignRequest", e);
    }
  }
private void readObject ( final ObjectInputStream in ) throws IOException , ClassNotFoundException { try { final byte [ ] bytes = ( byte [ ] ) in . readObject ( ) ; final Document document = DOMUtils . bytesToDocument ( bytes ) ; this . signRequest = JAXBUnmarshaller . unmarshall ( document , SignRequest . class ) ; } catch ( JAXBException | InternalXMLException e ) { throw new IOException ( "Could not restore SignRequest" , e ) ; } }
For deserialization of the object
For deserialization of the object