| java.lang.Object org.apache.commons.mail.EmailUtils
EmailUtils | final class EmailUtils (Code) | | Utility methods used by commons-email.
These methods are copied from other commons components (commons-lang) to avoid creating a dependency for such a small component.
This is a package scoped class, and should not be used directly by users.
author: jakarta-commons version: $Id: EmailUtils.java 279313 2005-09-07 12:41:58Z henning $ since: 1.0 |
Method Summary | |
static boolean | isEmpty(String str)
Checks if a String is empty ("") or null. | static boolean | isNotEmpty(String str)
Checks if a String is not empty ("") and not null. | static void | notNull(Object object, String message)
Validate an argument, throwing IllegalArgumentException if the argument is null . | static String | randomAlphabetic(int count)
Creates a random string whose length is the number of characters specified. |
isEmpty | static boolean isEmpty(String str)(Code) | |
Checks if a String is empty ("") or null.
Parameters: str - the String to check, may be null true if the String is empty or null since: Commons Lang v2.1, svn 240418 |
isNotEmpty | static boolean isNotEmpty(String str)(Code) | |
Checks if a String is not empty ("") and not null.
Parameters: str - the String to check, may be null true if the String is not empty and not null since: Commons Lang v2.1, svn 240418 |
notNull | static void notNull(Object object, String message)(Code) | |
Validate an argument, throwing IllegalArgumentException if the argument is null .
Parameters: object - the object to check is not null Parameters: message - the exception message you would like to see if the object is null throws: IllegalArgumentException - if the object is null since: Commons Lang v2.1, svn 201930 |
randomAlphabetic | static String randomAlphabetic(int count)(Code) | |
Creates a random string whose length is the number of characters specified.
Characters will be chosen from the set of alphabetic characters.
Parameters: count - the length of random string to create the random string since: Commons Lang v2.1, svn 201930 |
|
|