Package org.webpki.util
Class StringUtil
java.lang.Object
org.webpki.util.StringUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BitSet
static void
checkAllowedChars
(String s, String allowedChars) static void
checkAllowedChars
(String s, BitSet allowedChars) static String
checkRemovePrefix
(String original, String prefix) static int
firstMember
(String s, String charSet) static int
firstMember
(String s, BitSet charSet) static int
firstMember
(String s, BitSet charSet, int startOffset) static int
firstNonMember
(String s, String charSet) static int
firstNonMember
(String s, BitSet charSet) static int
firstNonMember
(String s, BitSet charSet, int startOffset) static boolean
hasOnlyLegalChars
(String s, String allowedChars) static boolean
hasOnlyLegalChars
(String s, BitSet allowedChars) static String
static String
static String[]
static String[]
static String[]
static String[]
static String[]
splitAtAny
(String s, String[] delimiters) static String[]
splitAtAny
(String s, String[] delimiters, boolean includeEmpty) static String
static String[]
static String[]
tokenVector
(String s, String delimiters) static String
zeroPaddedBinary
(int n, int length) static String
zeroPaddedHex
(int n, int length) static String
zeroPaddedNumber
(int n, int length)
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
splitAtAny
-
splitAtAny
-
splitAt
-
splitAt
-
tokenVector
-
tokenVector
-
tokenList
-
charSet
-
firstMember
-
firstMember
-
firstMember
-
firstNonMember
-
firstNonMember
-
firstNonMember
-
hasOnlyLegalChars
-
hasOnlyLegalChars
-
checkAllowedChars
-
checkAllowedChars
-
checkRemovePrefix
-
javaUnescape
-
padLeft
-
zeroPaddedNumber
-
zeroPaddedHex
-
zeroPaddedBinary
-
readFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-