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 StringclassNameToVarName(String className) static StringcleanString(String str) static StringgetChars(int numberOfChars, char theChar) Get a string consisting ofnumberOfCharstheChars.static StringgetClassName(Class targetClass) static StringgetCommaListFromVector(Vector sourceVector) static ReadergetContentAsReader(URL url) static StringgetContentAsString(URL url) static StringgetSafeString(String scriptStr) static URLstatic StringgetValidIdentifierName(String identifierName) static booleanisValidIdentifierName(String identifierName) static booleanisValidPackageName(String packageName)
-
Field Details
-
lineSeparator
-
lineSeparatorStr
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
classNameToVarName
-
cleanString
-
getChars
Get a string consisting ofnumberOfCharstheChars.- Returns:
- a string consisting of
numberOfCharstheChars.
-
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
-