org.hd.d.pg2k.svrCore
Class TextUtils.Base64Cache

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.TextUtils.Base64Cache
Enclosing class:
TextUtils

private static final class TextUtils.Base64Cache
extends java.lang.Object

Private to encode8To6()/decode8To6(); automagically created on first access.


Field Summary
private static char[] alphabet
          Private to encode8To6()/decode8To6().
private static int[] valueOf
          Index/value of each legit 7-bit-ASCII character from the alphabet.
 
Constructor Summary
private TextUtils.Base64Cache()
          Prevent construction of any instance.
 
Method Summary
static int getValueOf(char c)
          Gets valueOf given char; non-negative.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alphabet

private static final char[] alphabet
Private to encode8To6()/decode8To6().


valueOf

private static final int[] valueOf
Index/value of each legit 7-bit-ASCII character from the alphabet. All other (ie illegal) values map to -1.

This is effectively the reverse mapping for alphabet[].

Constructor Detail

TextUtils.Base64Cache

private TextUtils.Base64Cache()
Prevent construction of any instance.

Method Detail

getValueOf

public static int getValueOf(char c)
Gets valueOf given char; non-negative.

Returns:
value in range 0--63 inclusive
Throws:
java.lang.IllegalArgumentException - for invalid char (not from allowed alphabet)

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.