MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getAlphabet

Method getAlphabet

java/src/cx/fbn/encrypt/Base64.java:402–410  ·  view source on GitHub ↗

Returns one of the _SOMETHING_ALPHABET byte arrays depending on the options specified. It's possible, though silly, to specify ORDERED and URLSAFE in which case one of them will be picked, though there is no guarantee as to which one will be picked.

( int options )

Source from the content-addressed store, hash-verified

400 * no guarantee as to which one will be picked.
401 */
402 private final static byte[] getAlphabet( int options ) {
403 if ((options & URL_SAFE) == URL_SAFE) {
404 return _URL_SAFE_ALPHABET;
405 } else if ((options & ORDERED) == ORDERED) {
406 return _ORDERED_ALPHABET;
407 } else {
408 return _STANDARD_ALPHABET;
409 }
410 } // end getAlphabet
411
412
413 /**

Callers 1

encode3to4Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected