Java String Sanitize sanitizeName(String name)

Here you can find the source of sanitizeName(String name)

Description

sanitize Name

License

Open Source License

Declaration

public static String sanitizeName(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String sanitizeName(String name) {
        return name != null ? (name.contains(" ") ? name.toLowerCase().replaceAll(" ", "_") : name.toLowerCase())
                : null;/* w w  w . j a  v a 2 s .c  o  m*/
    }
}

Related

  1. sanitizeLineSpaces(String line)
  2. sanitizeLoggerNamePart(String name)
  3. sanitizeMethodName(String methodName)
  4. sanitizeMimeType(final String mimeType)
  5. sanitizeName(String input)
  6. SanitizeName(String Name)
  7. sanitizeName(String name)
  8. sanitizeName(String name)
  9. sanitizeName(String origName)