@@ -40,13 +40,13 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
4040 };
4141
4242 /**
43- * Converts an array of characters representing hexidecimal values into an
43+ * Converts an array of characters representing hexadecimal values into an
4444 * array of bytes of those same values. The returned array will be half the
4545 * length of the passed array, as it takes two characters to represent any
4646 * given byte. An exception is thrown if the passed char array has an odd
4747 * number of elements.
4848 *
49- * @param data An array of characters containing hexidecimal digits
49+ * @param data An array of characters containing hexadecimal digits
5050 * @return A byte array containing binary data decoded from
5151 * the supplied char array.
5252 * @throws DecoderException Thrown if an odd number or illegal of characters
@@ -91,13 +91,13 @@ protected static int toDigit(char ch, int index) throws DecoderException {
9191 }
9292
9393 /**
94- * Converts an array of bytes into an array of characters representing the hexidecimal values of each byte in order.
94+ * Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order.
9595 * The returned array will be double the length of the passed array, as it takes two characters to represent any
9696 * given byte.
9797 *
9898 * @param data
9999 * a byte[] to convert to Hex characters
100- * @return A char[] containing hexidecimal characters
100+ * @return A char[] containing hexadecimal characters
101101 */
102102 public static char [] encodeHex (byte [] data ) {
103103
@@ -115,13 +115,13 @@ public static char[] encodeHex(byte[] data) {
115115 }
116116
117117 /**
118- * Converts an array of character bytes representing hexidecimal values into an
118+ * Converts an array of character bytes representing hexadecimal values into an
119119 * array of bytes of those same values. The returned array will be half the
120120 * length of the passed array, as it takes two characters to represent any
121121 * given byte. An exception is thrown if the passed char array has an odd
122122 * number of elements.
123123 *
124- * @param array An array of character bytes containing hexidecimal digits
124+ * @param array An array of character bytes containing hexadecimal digits
125125 * @return A byte array containing binary data decoded from
126126 * the supplied byte array (representing characters).
127127 * @throws DecoderException Thrown if an odd number of characters is supplied
@@ -133,13 +133,13 @@ public byte[] decode(byte[] array) throws DecoderException {
133133 }
134134
135135 /**
136- * Converts a String or an array of character bytes representing hexidecimal values into an
136+ * Converts a String or an array of character bytes representing hexadecimal values into an
137137 * array of bytes of those same values. The returned array will be half the
138138 * length of the passed String or array, as it takes two characters to represent any
139139 * given byte. An exception is thrown if the passed char array has an odd
140140 * number of elements.
141141 *
142- * @param object A String or, an array of character bytes containing hexidecimal digits
142+ * @param object A String or, an array of character bytes containing hexadecimal digits
143143 * @return A byte array containing binary data decoded from
144144 * the supplied byte array (representing characters).
145145 * @throws DecoderException Thrown if an odd number of characters is supplied
@@ -157,12 +157,12 @@ public Object decode(Object object) throws DecoderException {
157157
158158 /**
159159 * Converts an array of bytes into an array of bytes for the characters representing the
160- * hexidecimal values of each byte in order. The returned array will be
160+ * hexadecimal values of each byte in order. The returned array will be
161161 * double the length of the passed array, as it takes two characters to
162162 * represent any given byte.
163163 *
164164 * @param array a byte[] to convert to Hex characters
165- * @return A byte[] containing the bytes of the hexidecimal characters
165+ * @return A byte[] containing the bytes of the hexadecimal characters
166166 * @see #encodeHex(byte[])
167167 */
168168 public byte [] encode (byte [] array ) {
@@ -171,12 +171,12 @@ public byte[] encode(byte[] array) {
171171
172172 /**
173173 * Converts a String or an array of bytes into an array of characters representing the
174- * hexidecimal values of each byte in order. The returned array will be
174+ * hexadecimal values of each byte in order. The returned array will be
175175 * double the length of the passed String or array, as it takes two characters to
176176 * represent any given byte.
177177 *
178178 * @param object a String, or byte[] to convert to Hex characters
179- * @return A char[] containing hexidecimal characters
179+ * @return A char[] containing hexadecimal characters
180180 * @throws EncoderException Thrown if the given object is not a String or byte[]
181181 * @see #encodeHex(byte[])
182182 */
0 commit comments