Lines Matching full:alphabet
57 private final char[] alphabet;
61 * Initializes the class with the specified encoding/decoding alphabet.
63 * @param alphabet
64 * @throws IllegalArgumentException if alphabet is not 64 characters long or
67 Base64Util(final String alphabet) {
68 this.alphabet = alphabet.toCharArray();
69 if (alphabet.length() != ALPHABET_LENGTH)
70 throw new IllegalArgumentException("alphabet has incorrect length (should be 64, not "
71 + alphabet.length() + ")");
74 for (int i = 0; i < this.alphabet.length; i++) {
75 final char ch = this.alphabet[i];
77 throw new IllegalArgumentException("invalid character in alphabet: " + ch);
88 * the alphabet
97 * Tells whether the alphabet contains the specified character.
100 * @return true if the alphabet contains <code>ch</code>, false otherwise
115 return (byte)alphabet[sextet];