public static String encodeClassName(String iClassName) {
    if (iClassName == null)
      return null;

    if (Character.isDigit(iClassName.charAt(0)))
      iClassName = "-" + iClassName;

    try {
      return URLEncoder.encode(iClassName, "UTF-8").replaceAll("\\.", "%2E"); // encode invalid '.'
    } catch (UnsupportedEncodingException e) {
      OLogManager.instance().error(null, "Error on encoding class name using encoding '%s'", e, "UTF-8");
      return iClassName;
    }
  }
public static String encodeClassName ( String iClassName ) { if ( iClassName == null ) return null ; if ( Character . isDigit ( iClassName . charAt ( 0 ) ) ) iClassName = "-" + iClassName ; try { return URLEncoder . encode ( iClassName , "UTF-8" ) . replaceAll ( "\\." , "%2E" ) ; } catch ( UnsupportedEncodingException e ) { OLogManager . instance ( ) . error ( null , "Error on encoding class name using encoding '%s'" , e , "UTF-8" ) ; return iClassName ; } }
(Internal)