Packagecalista.utils
Classpublic class Base8
InheritanceBase8 Inheritance Object

The Base8 algorithm encoding tool class.

Example :

     import calista.utils.Base8 ;
     
     var source:String = "hello world with a base 8 algorithm" ;
     
     var encode:String = Base8.encode( source ) ;
     trace("encode : " + encode) ;
     
     var decode:String = Base8.decode( encode ) ;
     trace("decode : " + decode) ;
     
     // encode : 68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d
     // decode : hello world with a base 8 algorithm
     



Public Methods
 MethodDefined By
  
decode(source:String):String
[static] Decodes a base8 string.
Base8
  
encode(source:String):String
[static] Encodes a base8 string.
Base8
Method Detail
decode()method
public static function decode(source:String):String

Decodes a base8 string.

Example :

         import calista.utils.Base8 ;
         var decode:String = Base8.decode( "68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d" ) ;
         trace("decode : " + decode) ; // decode : "hello world with a base 8 algorithm"
         

Parameters

source:String

Returns
String
encode()method 
public static function encode(source:String):String

Encodes a base8 string.

Example :

         import calista.utils.Base8 ;
         var encode:String = Base8.encode( "hello world with a base 8 algorithm" ) ;
         trace("encode : " + encode) ; // encode : 68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d
         

Parameters

source:String

Returns
String