public File write(File file) throws IOException {
        try (FileOutputStream fos = new FileOutputStream(file)) {
            write(fos);
            return file;
        }
    }
public File write ( File file ) throws IOException { try ( FileOutputStream fos = new FileOutputStream ( file ) ) { write ( fos ) ; return file ; } }
Writes this JAR to a file.