|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.util.BasicAlphabetMapper
A basic alphabet mapper that just creates a mapper based on the passed in array of characters.
| Constructor Summary | |
BasicAlphabetMapper(char[] alphabet)
Base constructor. |
|
BasicAlphabetMapper(java.lang.String alphabet)
Base constructor. |
|
| Method Summary | |
char[] |
convertToChars(byte[] input)
Return a char[] for this alphabet based on the indexes passed. |
byte[] |
convertToIndexes(char[] input)
Return the passed in char[] as a byte array of indexes (indexes can be more than 1 byte) |
int |
getRadix()
Return the number of characters in the alphabet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAlphabetMapper(java.lang.String alphabet)
alphabet - a String of characters making up the alphabet.public BasicAlphabetMapper(char[] alphabet)
alphabet - an array of characters making up the alphabet.| Method Detail |
public int getRadix()
AlphabetMapper
getRadix in interface AlphabetMapperpublic byte[] convertToIndexes(char[] input)
AlphabetMapper
convertToIndexes in interface AlphabetMapperinput - characters to be mapped.
public char[] convertToChars(byte[] input)
AlphabetMapper
convertToChars in interface AlphabetMapperinput - input array of indexes.
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||