* @author Rob Harrop\r
* @author Rick Evans\r
* @since 16 April 2001\r
- * @see org.apache.commons.lang.StringUtils\r
*/\r
@SuppressWarnings({ "rawtypes", "unchecked" })\r
public abstract class StringUtils {\r
* Quote the given String with single quotes.\r
* @param str the input String (e.g. "myString")\r
* @return the quoted String (e.g. "'myString'"),\r
- * or <code>null<code> if the input was <code>null</code>\r
+ * or <code>null</code> if the input was <code>null</code>\r
*/\r
public static String quote(String str) {\r
return (str != null ? "'" + str + "'" : null);\r
\r
/**\r
* Extract the filename from the given path,\r
- * e.g. "mypath/myfile.txt" -> "myfile.txt".\r
+ * e.g. "mypath/myfile.txt" to "myfile.txt".\r
* @param path the file path (may be <code>null</code>)\r
* @return the extracted filename, or <code>null</code> if none\r
*/\r
\r
/**\r
* Extract the filename extension from the given path,\r
- * e.g. "mypath/myfile.txt" -> "txt".\r
+ * e.g. "mypath/myfile.txt" to "txt".\r
* @param path the file path (may be <code>null</code>)\r
* @return the extracted filename extension, or <code>null</code> if none\r
*/\r
\r
/**\r
* Strip the filename extension from the given path,\r
- * e.g. "mypath/myfile.txt" -> "mypath/myfile".\r
+ * e.g. "mypath/myfile.txt" to "mypath/myfile".\r
* @param path the file path (may be <code>null</code>)\r
* @return the path with stripped filename extension,\r
* or <code>null</code> if none\r