Java String Sanitize sanitizeString(final String s)

Here you can find the source of sanitizeString(final String s)

Description

sanitize String

License

Open Source License

Declaration

final public static String sanitizeString(final String s) 

Method Source Code

//package com.java2s;
// License as published by the Free Software Foundation; either

public class Main {
    final public static String sanitizeString(final String s) {
        if (s == null) {
            return "";
        } else {/*from   ww w  . ja  v a  2  s . c o  m*/
            return s.trim();
        }
    }
}

Related

  1. sanitizeProjectName(final String projectName)
  2. sanitizeRefName(String refName)
  3. sanitizeResource(String resource)
  4. sanitizeSAMHeader(String samString)
  5. sanitizeSingleQuotesInAlbumItemValues(String value)
  6. sanitizeString(String dirtyString)
  7. sanitizeString(String input)
  8. sanitizeString(String s)
  9. sanitizeString(String s)