Package org.webpki.asn1
Class StringUtil
java.lang.Object
org.webpki.asn1.StringUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BitSetstatic voidcheckAllowedChars(String s, String allowedChars) static voidcheckAllowedChars(String s, BitSet allowedChars) static StringcheckRemovePrefix(String original, String prefix) static intfirstMember(String s, String charSet) static intfirstMember(String s, BitSet charSet) static intfirstMember(String s, BitSet charSet, int startOffset) static intfirstNonMember(String s, String charSet) static intfirstNonMember(String s, BitSet charSet) static intfirstNonMember(String s, BitSet charSet, int startOffset) static booleanhasOnlyLegalChars(String s, String allowedChars) static booleanhasOnlyLegalChars(String s, BitSet allowedChars) static Stringstatic Stringstatic String[]static String[]static String[]static String[]static String[]splitAtAny(String s, String[] delimiters) static String[]splitAtAny(String s, String[] delimiters, boolean includeEmpty) static Stringstatic String[]static String[]tokenVector(String s, String delimiters) static StringzeroPaddedBinary(int n, int length) static StringzeroPaddedHex(int n, int length) static StringzeroPaddedNumber(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
-