/** * Append the input value string to the given buffer, wrapping it with * quotes if need be. * * @param value * @return String */ static String maybeQuote(String tSpecials, String value) { if (needsQuote(tSpecials, value)) { StringBuilder buff = new StringBuilder(); buff.append('"'); if (value != null) { buff.append(value); } buff.append('"'); return buff.toString(); } return value == null ? "" : value; } static String maybeQuoteAll(String value) {