@Override
  public void write(Keyset keyset) throws IOException {
    try {
      keyset.writeTo(outputStream);
    } finally {
      outputStream.close();
    }
  }
Static method to create a BinaryKeysetWriter that writes to a file.

@deprecated Inline the function.
java_src/src/main/java/com/google/crypto/tink/BinaryKeysetWriter.java