cdm/src/main/java/ucar/nc2/Variable.java
public void getNameAndDimensions(StringBuilder buf, boolean useFullName, boolean strict) {
    Formatter proxy = new Formatter();
    getNameAndDimensions(proxy, useFullName, strict);
    buf.append(proxy.toString());
  }
public void getNameAndDimensions(StringBuilder buf, boolean useFullName, boolean strict) {
    Formatter proxy = new Formatter();
    getNameAndDimensions(proxy, useFullName, strict);
    buf.append(proxy.toString());
  }
Add display name plus the dimensions to the StringBuffer

@param buf         add info to this
@param useFullName use full name else short name. strict = true implies short name
@param strict      strictly comply with ncgen syntax, with name escaping. otherwise, get extra info, no escaping