Packagenet.oauth.encryption
Classpublic class Hex



Public Methods
 MethodDefined by
  
fromArray(array:ByteArray, colons:Boolean = false):String
[static]
Hex
  
fromString(str:String, colons:Boolean = false):String
[static]
Hex
  
toArray(hex:String):ByteArray
[static] Support straight hex, or colon-laced hex.
Hex
  
toString(hex:String):String
[static]
Hex
Method detail
fromArray()method
public static function fromArray(array:ByteArray, colons:Boolean = false):StringParameters
array:ByteArray
 
colons:Boolean (default = false)

Returns
String
fromString()method 
public static function fromString(str:String, colons:Boolean = false):String

Parameters
str:String
 
colons:Boolean (default = false)

Returns
String — a hex string encoded from the UTF-8 string str
toArray()method 
public static function toArray(hex:String):ByteArray

Support straight hex, or colon-laced hex. (that means 23:03:0e:f0, but OT23:3:e:f0) Whitespace characters are ignored.

Parameters
hex:String

Returns
ByteArray
toString()method 
public static function toString(hex:String):String

Parameters
hex:String

Returns
String — a UTF-8 string decoded from hex