ariba.ui.aribaweb.util
Class AWBase64

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.util.AWBase64
All Implemented Interfaces:
AWObject

public class AWBase64
extends AWBaseObject


Field Summary
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Constructor Summary
AWBase64()
           
 
Method Summary
static long base64DecodeLong(java.lang.String encodedString, int startPos)
           
static java.lang.String base64EncodeLong(long longValue)
           
static void setEncodingBase(int base)
          Set the base we use for encoding the semantic keys.
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWBase64

public AWBase64()
Method Detail

setEncodingBase

public static void setEncodingBase(int base)
Set the base we use for encoding the semantic keys.

Parameters:
base - - the base to use, must be either 32 or 64

base64EncodeLong

public static java.lang.String base64EncodeLong(long longValue)
Parameters:
longValue - a 32-bit value to be Base64 encoded. We use long here to avoid issues with negative values.

base64DecodeLong

public static long base64DecodeLong(java.lang.String encodedString,
                                    int startPos)
Parameters:
encodedString -
startPos - this allows for a prefix ont he encodedString. All elementIds start with '_'


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.