Packageorg.igniterealtime.xiff.util
Classpublic class Hex
InheritanceHex Inheritance Object

Utility for reading and writing Hex formatted data to/from ByteArray.



Public Methods
 MethodDefined By
  
readBytes(ba:ByteArray):String
[static] Read the bytes of the given bytearray and convert to a hex string
Hex
  
writeBytes(ba:ByteArray, hex:String):ByteArray
[static] Write the given hex string to the bytearray
Hex
Method Detail
readBytes()method
public static function readBytes(ba:ByteArray):String

Read the bytes of the given bytearray and convert to a hex string

Parameters

ba:ByteArray

Returns
String — String in hex format
writeBytes()method 
public static function writeBytes(ba:ByteArray, hex:String):ByteArray

Write the given hex string to the bytearray

Parameters

ba:ByteArray
 
hex:String

Returns
ByteArray — ByteArray that has the hex written in it