java.lang.Object
org.minidns.util.Hex
Utility class for hexadecimal conversion.
Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic StringBuilderfrom(byte[] bytes) Converts a byte array to a hexadecimal string representation.
Constructor Details
Hex
public Hex()Constructor. Both conversions are static functions of their byte or string argument, so an instance carries no state.
Method Details
from
Converts a byte array to a hexadecimal string representation.- Parameters:
bytes- the byte array to convert- Returns:
- a StringBuilder containing the hexadecimal representation (uppercase with spaces)