Package org.apache.bsf.util
Class StringUtils
java.lang.Object
org.apache.bsf.util.StringUtils
Deals with strings (probably need to elaborate some more).
- Author:
- Matthew J. Duftler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
classNameToVarName
(String className) static String
cleanString
(String str) static String
getChars
(int numberOfChars, char theChar) Get a string consisting ofnumberOfChars
theChars.static String
getClassName
(Class targetClass) static String
getCommaListFromVector
(Vector sourceVector) static Reader
getContentAsReader
(URL url) static String
getContentAsString
(URL url) static String
getSafeString
(String scriptStr) static URL
static String
getValidIdentifierName
(String identifierName) static boolean
isValidIdentifierName
(String identifierName) static boolean
isValidPackageName
(String packageName)
-
Field Details
-
lineSeparator
-
lineSeparatorStr
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
classNameToVarName
-
cleanString
-
getChars
Get a string consisting ofnumberOfChars
theChars.- Returns:
- a string consisting of
numberOfChars
theChars.
-
getClassName
-
getCommaListFromVector
-
getContentAsReader
public static Reader getContentAsReader(URL url) throws SecurityException, IllegalArgumentException, IOException -
getContentAsString
public static String getContentAsString(URL url) throws SecurityException, IllegalArgumentException, IOException -
getSafeString
-
getURL
- Throws:
MalformedURLException
-
getValidIdentifierName
-
isValidIdentifierName
-
isValidPackageName
-