tds/src/main/java/thredds/util/StringValidateEncodeUtils.java
public static boolean validSingleLineString(String singleLineString) {
    if (singleLineString == null) return false;
    Matcher m = INVALID_CHARACTERS_FOR_SINGLE_LINE_STRING_PATTERN.matcher(singleLineString);
    return !m.find();
  }
public static boolean validSingleLineString(String singleLineString) {
    if (singleLineString == null) return false;
    Matcher m = INVALID_CHARACTERS_FOR_SINGLE_LINE_STRING_PATTERN.matcher(singleLineString);
    return !m.find();
  }
public static boolean validSingleLineString ( String singleLineString ) { if ( singleLineString == null ) return false ; Matcher m = INVALID_CHARACTERS_FOR_SINGLE_LINE_STRING_PATTERN . matcher ( singleLineString ) ; return ! m . find ( ) ; }
Return true if the given String is a valid single-line String.
<p>
<p>A string will be considered a valid single-line string if it does not
contain any characters from these Unicode general categories:
<p>
<ul>
<li>Cc - Other, Control</li>
<li>Cf - Other, Format</li>
<li>Cs - Other, Surrogate</li>
<li>Co - Other, Private Use</li>
<li>Cn - Other, Not Assigned</li>
<li>Zl - Separator, Line</li>
<li>Zp - Separator, Paragraph</li>
</ul>
<p>
<p>Or, in other words, allow: Letters, Numbers, Marks, Punctuation,
Symbols, and Space separators.

@param singleLineString the String to validate
@return true if the given String is a valid single-line String.
Return true if the given String is a valid single - line String . <p > <p > A string will be considered a valid single - line string if it does not contain any characters from these Unicode general categories : <p > <ul > <li > Cc - Other Control< / li > <li > Cf - Other Format< / li > <li > Cs - Other Surrogate< / li > <li > Co - Other Private Use< / li > <li > Cn - Other Not Assigned< / li > <li > Zl - Separator Line< / li > <li > Zp - Separator Paragraph< / li > < / ul > <p > <p > Or in other words allow : Letters Numbers Marks Punctuation Symbols and Space separators .