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