code: public OutputStream write() throws IOException {
          if(gz.exists())
              gz.delete();
          try {
              return Files.newOutputStream(file.toPath());
          } catch (InvalidPathException e) {
              throw new IOException(e);
          }
      }
docs: Gets the OutputStream to write to the file.