| java.lang.Object com.sun.portal.app.filesharing.util.ParameterCheck
ParameterCheck | public class ParameterCheck (Code) | | author: Alejandro Abdelnur |
checkNotEmpty | public static void checkNotEmpty(String paramName, String param, boolean trim)(Code) | | Verifies if a parameter is not empty. If empty throws an IllegalArgumentException.
Parameters: paramName - name of the parameter, for the exception message. Parameters: param - value of the parameter to check for not empty. Parameters: trim - indicates if the parameter value should be trimmed before check. throws: IllegalArgumentException - thrown if the parameter is NULL. |
checkNotNull | public static void checkNotNull(String paramName, Object param)(Code) | | Verifies if a parameter is NULL. If NULL throws an IllegalArgumentException.
Parameters: paramName - name of the parameter, for the exception message. Parameters: param - value of the parameter to check for NULL throws: IllegalArgumentException - thrown if the parameter is NULL. |
decodeCharset | public static String decodeCharset(String s, String charset)(Code) | | decoding parameter by given charset
Parameters: s - String for decoding Parameters: charset - The target charset return decoded string if success,or original string including null. |
|
|