ActionScript 3 Cryptography Library | All Packages | All Classes | Index | Frames No Frames |
Hex

Package | com.hurlant.util
Class | public class Hex
Inheritance | Hex Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | fromArray(array:ByteArray, colons:Boolean = false):String [static] Generates lowercase hexadecimal string from given byte-array | Hex
|  | fromRawString(str:String, colons:Boolean = false):String [static] Convenience method for generating hexadecimal string using iso-8859-1 | Hex
|  | fromString(str:String, colons:Boolean = false, charSet:String = utf-8):String [static] Generates hexadecimal string from given string | Hex
|  | toArray(hex:String):ByteArray [static] Generates byte-array from given hexadecimal string Supports straight and colon-laced hex (that means 23:03:0e:f0, but OT23:3:e:f0) The first nibble (hex digit) may be omitted. | Hex
|  | toRawString(hex:String):String [static] Convenience method for generating string using iso-8859-1 | Hex
|  | toString(hex:String, charSet:String = utf-8):String [static] Generates string from given hexadecimal string | Hex

Method Detail

fromArray | () | method

`public static function fromArray(array:ByteArray, colons:Boolean = false):String`

Generates lowercase hexadecimal string from given byte-array

Parameters

| `array:ByteArray`
| `colons:Boolean` (default = `false`)``

Returns

| `String`

fromRawString | () | method |

`public static function fromRawString(str:String, colons:Boolean = false):String`

Convenience method for generating hexadecimal string using iso-8859-1

Parameters

| `str:String`
| `colons:Boolean` (default = `false`)``

Returns

| `String`

fromString | () | method |

`public static function fromString(str:String, colons:Boolean = false, charSet:String = utf-8):String`

Generates hexadecimal string from given string

Parameters

| `str:String`
| `colons:Boolean` (default = `false`)``
| `charSet:String` (default = `utf-8`)``

Returns

| `String`

toArray | () | method |

`public static function toArray(hex:String):ByteArray`

Generates byte-array from given hexadecimal string Supports straight and colon-laced hex (that means 23:03:0e:f0, but OT23:3:e:f0) The first nibble (hex digit) may be omitted. Any whitespace characters are ignored.

Parameters

| `hex:String`

Returns

| `ByteArray`

toRawString | () | method |

`public static function toRawString(hex:String):String`

Convenience method for generating string using iso-8859-1

Parameters

| `hex:String`

Returns

| `String`

toString | () | method |

`public static function toString(hex:String, charSet:String = utf-8):String`

Generates string from given hexadecimal string

Parameters

| `hex:String`
| `charSet:String` (default = `utf-8`)``

Returns

| `String`

Mon May 20 2013, 09:16 PM +02:00