integration-impl/src/main/java/se/idsec/signservice/integration/dss/SignRequestWrapper.java
private void writeObject(final ObjectOutputStream out) throws IOException {
    try {
      final Document document = JAXBMarshaller.marshall(this.signRequest);
      final byte[] bytes = DOMUtils.nodeToBytes(document);
      out.writeObject(bytes);
    }
    catch (JAXBException | InternalXMLException e) {
      throw new IOException("Could not marshall SignRequest", e);
    }
  }
/**
   * For serialization of the object.
   * 
   * @param out
   *          the output stream
   * @throws IOException
   *           for errors
   */
For serialization of the object.

@param out
the output stream
@throws IOException
for errors
For serialization of the object . @param out the output stream @throws IOException for errors
private void writeObject(final ObjectOutputStream out) throws IOException {
    try {
      final Document document = JAXBMarshaller.marshall(this.signRequest);
      final byte[] bytes = DOMUtils.nodeToBytes(document);
      out.writeObject(bytes);
    }
    catch (JAXBException | InternalXMLException e) {
      throw new IOException("Could not marshall SignRequest", e);
    }
  }
private void writeObject ( final ObjectOutputStream out ) throws IOException { try { final Document document = JAXBMarshaller . marshall ( this . signRequest ) ; final byte [ ] bytes = DOMUtils . nodeToBytes ( document ) ; out . writeObject ( bytes ) ; } catch ( JAXBException | InternalXMLException e ) { throw new IOException ( "Could not marshall SignRequest" , e ) ; } }
For serialization of the object.
For serialization of the object .