code: public long copy(InputStream in, Node dest) throws IOException {
          long result;
  
          try (OutputStream out = dest.newOutputStream()) {
              result = copy(in, out);
          }
          return result;
      }
docs: Copies all bytes.
  
  @return number of bytes actually copied