cdm/src/main/java/ucar/nc2/NetcdfFile.java
public void writeCDL(OutputStream out, boolean strict) {
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, CDM.utf8Charset));
    toStringStart(pw, strict);
    toStringEnd(pw);
    pw.flush();
  }
public void writeCDL(OutputStream out, boolean strict) {
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, CDM.utf8Charset));
    toStringStart(pw, strict);
    toStringEnd(pw);
    pw.flush();
  }
Write CDL representation to OutputStream.

@param out    write to this OutputStream
@param strict if true, make it stricly CDL, otherwise, add a little extra info