/** Static method to create a JsonKeysetWriter that writes to an {@link OutputStream}. */ public static KeysetWriter withOutputStream(OutputStream stream) { return new JsonKeysetWriter(stream); }
/** Static method to create a JsonKeysetWriter that writes to a file. */ public static KeysetWriter withFile(File file) throws IOException { return new JsonKeysetWriter(new FileOutputStream(file)); }