public class HexaDecimal extends Object
| Constructor | Description |
|---|---|
HexaDecimal(String hexData) |
Constructs the class with the value provided as text
|
| Modifier and Type | Method | Description |
|---|---|---|
static String |
convertToBinary(String HexaTextValue) |
|
static String |
getBinaryValueText(char hexaChar) |
|
static String |
getHexaFromAscii(String acsiiText) |
|
static String |
getHexFromBinary(String binaryValue) |
|
static String |
parse(byte[] byteValue) |
|
static String |
parse(String textValue) |
This method will parse given string which represents array of bytes and
returns the equivalent hexa values as String.
|
static String |
parseBinaryValueText(String binaryValue) |
|
String |
toBinary() |
Transform the hexa value to its binary equivalent and return it as string
|
byte[] |
toByte() |
|
static String |
toHexString(byte byteValue) |
This method will return the hexadecimal value as string for the given
byte
|
static String |
toHexString(byte[] byteValues) |
|
static String |
toHexString(int integerValue) |
This method will return the hexadecimal value as string for the given
integer
|
public HexaDecimal(String hexData) throws NumberFormatException
hexData - the object starting value provided as textNumberFormatException - if the provided text do not represents hexadecimal textpublic String toBinary()
public byte[] toByte()
public static String getBinaryValueText(char hexaChar)
public static String toHexString(int integerValue)
integerValue - the integer value to convert, it must be in the range of byte
(i.e. 0..255)public static String toHexString(byte byteValue)
byteValue - the byte to convertpublic static String toHexString(byte[] byteValues)
public static String parse(String textValue)
textValue - the binary value represented as stringpublic static String parse(byte[] byteValue)
Copyright © 2019 SMYLD. All rights reserved.