Tabnine Logo
StringUtil2.quoteHtmlContent
Code IndexAdd Tabnine to your IDE (free)

How to use
quoteHtmlContent
method
in
ucar.unidata.util.StringUtil2

Best Java code snippets using ucar.unidata.util.StringUtil2.quoteHtmlContent (Showing top 9 results out of 315)

origin: Unidata/thredds

static private String makeHref(String href, String title) {
 if (title == null) title = href;
 return "<a href='" + StringUtil2.quoteHtmlContent(href) + "'>" + StringUtil2.quoteHtmlContent(title) + "</a>";
}
origin: edu.ucar/netcdf

static private String makeHref(String href, String title) {
 if (title == null) title = href;
 return "<a href='" + StringUtil2.quoteHtmlContent(href) + "'>" + StringUtil2.quoteHtmlContent(title) + "</a>";
}
origin: edu.ucar/cdm

static private String makeHref(String href, String title) {
 if (title == null) title = href;
 return "<a href='" + StringUtil2.quoteHtmlContent(href) + "'>" + StringUtil2.quoteHtmlContent(title) + "</a>";
}
origin: Unidata/thredds

buff.append(" <li><em>Data format: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataFormatType().toString())).append("</li>\n");
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n");
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Naming Authority: </em>").append(StringUtil2.quoteHtmlContent(ds.getAuthority())).append("</li>\n");
buff.append(" <li><em>ID: </em>").append(StringUtil2.quoteHtmlContent(ds.getID())).append("</li>\n");
buff.append(" <li><em>RestrictAccess: </em>").append(StringUtil2.quoteHtmlContent(ds.getRestrictAccess())).append("</li>\n");
buff.append("<h3>Documentation:</h3>\n<ul>\n");
for (InvDocumentation doc : docs) {
 String type = (doc.getType() == null) ? "" : "<strong>" + StringUtil2.quoteHtmlContent(doc.getType()) + ":</strong> ";
 String inline = doc.getInlineContent();
 if ((inline != null) && (inline.length() > 0))
  buff.append(" <li>").append(type).append(StringUtil2.quoteHtmlContent(inline)).append("</li>\n");
 if (doc.hasXlink()) {
 buff.append(" <li> <b>").append(StringUtil2.quoteHtmlContent(s.getServiceType().toString()));
 buff.append(":</b> ").append(makeHref(fullUrlString, urlString)).append("</li>\n");
buff.append("<h3>Contributors:</h3>\n<ul>\n");
for (ThreddsMetadata.Contributor t : contributors) {
 String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> ";
 buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
buff.append("<h3>Keywords:</h3>\n<ul>\n");
origin: edu.ucar/cdm

buff.append(" <li><em>Data format: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataFormatType().toString())).append("</li>\n");
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n");
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Naming Authority: </em>").append(StringUtil2.quoteHtmlContent(ds.getAuthority())).append("</li>\n");
buff.append(" <li><em>ID: </em>").append(StringUtil2.quoteHtmlContent(ds.getID())).append("</li>\n");
buff.append(" <li><em>RestrictAccess: </em>").append(StringUtil2.quoteHtmlContent(ds.getRestrictAccess())).append("</li>\n");
buff.append("<h3>Documentation:</h3>\n<ul>\n");
for (InvDocumentation doc : docs) {
 String type = (doc.getType() == null) ? "" : "<strong>" + StringUtil2.quoteHtmlContent(doc.getType()) + ":</strong> ";
 String inline = doc.getInlineContent();
 if ((inline != null) && (inline.length() > 0))
  buff.append(" <li>").append(type).append(StringUtil2.quoteHtmlContent(inline)).append("</li>\n");
 if (doc.hasXlink()) {
 buff.append(" <li> <b>").append(StringUtil2.quoteHtmlContent(s.getServiceType().toString()));
 buff.append(":</b> ").append(makeHref(fullUrlString, urlString)).append("</li>\n");
buff.append("<h3>Contributors:</h3>\n<ul>\n");
for (ThreddsMetadata.Contributor t : contributors) {
 String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> ";
 buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
buff.append("<h3>Keywords:</h3>\n<ul>\n");
origin: edu.ucar/netcdf

buff.append(" <li><em>Data format: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataFormatType().toString())).append("</li>\n");
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n");
buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Naming Authority: </em>").append(StringUtil2.quoteHtmlContent(ds.getAuthority())).append("</li>\n");
buff.append(" <li><em>ID: </em>").append(StringUtil2.quoteHtmlContent(ds.getID())).append("</li>\n");
buff.append(" <li><em>RestrictAccess: </em>").append(StringUtil2.quoteHtmlContent(ds.getRestrictAccess())).append("</li>\n");
buff.append("<h3>Documentation:</h3>\n<ul>\n");
for (InvDocumentation doc : docs) {
 String type = (doc.getType() == null) ? "" : "<strong>" + StringUtil2.quoteHtmlContent(doc.getType()) + ":</strong> ";
 String inline = doc.getInlineContent();
 if ((inline != null) && (inline.length() > 0))
  buff.append(" <li>").append(type).append(StringUtil2.quoteHtmlContent(inline)).append("</li>\n");
 if (doc.hasXlink()) {
 buff.append(" <li> <b>").append(StringUtil2.quoteHtmlContent(s.getServiceType().toString()));
 buff.append(":</b> ").append(makeHref(fullUrlString, urlString)).append("</li>\n");
buff.append("<h3>Contributors:</h3>\n<ul>\n");
for (ThreddsMetadata.Contributor t : contributors) {
 String role = (t.getRole() == null) ? "" : "<strong> (" + StringUtil2.quoteHtmlContent(t.getRole()) + ")</strong> ";
 buff.append(" <li>").append(StringUtil2.quoteHtmlContent(t.getName())).append(role).append("</li>\n");
buff.append("<h3>Keywords:</h3>\n<ul>\n");
origin: edu.ucar/netcdf

static private String rangeString(ThreddsMetadata.Range r) {
 if (r == null) return "";
 String units = (r.getUnits() == null) ? "" : " " + r.getUnits();
 String resolution = r.hasResolution() ? " Resolution=" + r.getResolution() : "";
 return StringUtil2.quoteHtmlContent(r.getStart() + " to " + (r.getStart() + r.getSize()) + resolution + units);
}
origin: Unidata/thredds

static private String rangeString(ThreddsMetadata.Range r) {
 if (r == null) return "";
 String units = (r.getUnits() == null) ? "" : " " + r.getUnits();
 String resolution = r.hasResolution() ? " Resolution=" + r.getResolution() : "";
 return StringUtil2.quoteHtmlContent(r.getStart() + " to " + (r.getStart() + r.getSize()) + resolution + units);
}
origin: edu.ucar/cdm

static private String rangeString(ThreddsMetadata.Range r) {
 if (r == null) return "";
 String units = (r.getUnits() == null) ? "" : " " + r.getUnits();
 String resolution = r.hasResolution() ? " Resolution=" + r.getResolution() : "";
 return StringUtil2.quoteHtmlContent(r.getStart() + " to " + (r.getStart() + r.getSize()) + resolution + units);
}
ucar.unidata.utilStringUtil2quoteHtmlContent

Popular methods of StringUtil2

  • replace
    Replace any of the characters from out with corresponding character from in
  • remove
    Remove any of the characters in out from sb
  • substitute
    Find all occurences of the "match" in original, and substitute the "subst" string, directly into the
  • cleanup
    Delete any non-printable characters
  • splitString
    Split a string on one or more whitespace. Cover for String.split, because who can remember regexp?
  • unescape
    This finds any '%xx' and converts to the equivalent char. Inverse of escape().
  • collapseWhitespace
    Collapse continuous whitespace into one single " ".
  • allow
    Replace any char not alphanumeric or in allowChars by replaceChar.
  • breakTextAtWords
    Break the given text into lines, respecting word boundaries (blank space).
  • escape
    Escape any char not alphanumeric or in okChars. Escape by replacing char with %xx (hex).
  • getTokens
  • makeValidCdmObjectName
  • getTokens,
  • makeValidCdmObjectName,
  • padLeft,
  • padRight,
  • unreplace,
  • filter7bits,
  • match,
  • quoteXmlAttribute,
  • removeFromEnd

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now