examples/appnet-api-server/src/main/java/com/hedera/hashgraph/identity/hcs/example/appnet/AppnetStorage.java
/**
   * Persists signatures to a file.
   */
Persists signatures to a file.
Persists signatures to a file .
private void persistSignatures() {
    try (OutputStream fos = Files.newOutputStream(Paths.get(SIGNATURES_FILE_PATH), StandardOpenOption.CREATE)) {
      ObjectOutputStream oos = new ObjectOutputStream(fos);
      oos.writeObject(signatures);
      oos.close();
      log.info("Serialized signatures data is saved in signatures.ser");
    } catch (IOException ioe) {
      log.error(ioe.getMessage());
    }
  }
private void persistSignatures ( ) { try ( OutputStream fos = Files . newOutputStream ( Paths . get ( SIGNATURES_FILE_PATH ) , StandardOpenOption . CREATE ) ) { ObjectOutputStream oos = new ObjectOutputStream ( fos ) ; oos . writeObject ( signatures ) ; oos . close ( ) ; log . info ( "Serialized signatures data is saved in signatures.ser" ) ; } catch ( IOException ioe ) { log . error ( ioe . getMessage ( ) ) ; } }
Persists signatures to a file.
Persists signatures to a file .