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

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

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

origin: edu.ucar/netcdf

private void writeDataset(InvDataset ds, Element rootElem, StringBuffer mess) {
 String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-');
 rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId));
 rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
origin: Unidata/thredds

private void writeDataset(InvDataset ds, Element rootElem, StringBuilder mess) {
 String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-');
 rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId));
 rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
origin: edu.ucar/cdm

private void writeDataset(InvDataset ds, Element rootElem, StringBuilder mess) {
 String entryId = StringUtil2.allow(ds.getUniqueID(), "_-.", '-');
 rootElem.addContent( new Element("Entry_ID", defNS).addContent(entryId));
 rootElem.addContent( new Element("Entry_Title", defNS).addContent(ds.getFullName()));
origin: edu.ucar/netcdf

String id = StringUtil2.allow(ds.getUniqueID(), ".", '-');
entry.setAttribute("entry", id);
entry.addContent("THREDDS");
origin: edu.ucar/cdm

String id = StringUtil2.allow(ds.getUniqueID(), ".", '-');
entry.setAttribute("entry", id);
entry.addContent("THREDDS");
origin: Unidata/thredds

String id = StringUtil2.allow(ds.getUniqueID(), ".", '-');
entry.setAttribute("entry", id);
entry.addContent("THREDDS");
ucar.unidata.utilStringUtil2allow

Javadoc

Replace any char not alphanumeric or in allowChars by replaceChar.

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 " ".
  • 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
  • padLeft
    Pad the given string with padString on the left up to the given length.
  • makeValidCdmObjectName,
  • padLeft,
  • padRight,
  • quoteHtmlContent,
  • unreplace,
  • filter7bits,
  • match,
  • quoteXmlAttribute,
  • removeFromEnd

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text plugins
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