类 Hexes.Decoder

  • 封闭类:
    Hexes

    public static class Hexes.Decoder
    extends java.lang.Object
    Hex decoder. This class is immutable.
    • 构造器概要

      构造器 
      构造器 说明
      Decoder()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      byte[] decode​(java.lang.CharSequence data)
      Converts a sequence of chars representing hexadecimal values into an array of bytes of those same values.
      byte[] decode​(java.lang.String data)
      Converts a string representing hexadecimal values into an array of bytes of those same values.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Decoder

        public Decoder()
    • 方法详细资料

      • decode

        public byte[] decode​(java.lang.String data)
                      throws HexDecodeException
        Converts a string representing hexadecimal values into an array of bytes of those same values.
        参数:
        data - A String of characters containing hexadecimal digits
        返回:
        A byte array containing binary data decoded from the supplied char array.
        抛出:
        HexDecodeException
      • decode

        public byte[] decode​(java.lang.CharSequence data)
                      throws HexDecodeException
        Converts a sequence of chars representing hexadecimal values into an array of bytes of those same values.
        参数:
        data - A sequence of chars containing hexadecimal digits
        返回:
        A byte array containing binary data decoded from the supplied char array.
        抛出:
        HexDecodeException