Class HexFormat

java.lang.Object
org.bitcoinj.base.internal.HexFormat

public class HexFormat extends Object
This class implements a subset of the functionality of the HexFormat class available in Java 17 and later. Its behavior is the same as an instance of Java 17 HexFormat created with HexFormat.of(). It is an internal class to support ByteUtils and may be removed in the future when and if we have a Java 17 baseline.

Thanks to this Baeldung article.

  • Constructor Details

    • HexFormat

      public HexFormat()
  • Method Details

    • formatHex

      public String formatHex(byte[] bytes)
    • parseHex

      public byte[] parseHex(String hexString)