@@ -70,23 +70,23 @@ public class BinaryCodec implements BinaryDecoder, BinaryEncoder {
7070 private static final int [] BITS = {BIT_0 , BIT_1 , BIT_2 , BIT_3 , BIT_4 , BIT_5 , BIT_6 , BIT_7 };
7171
7272 /**
73- * Converts an array of raw binary data into an array of ascii 0 and 1 characters.
73+ * Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
7474 *
7575 * @param raw
7676 * the raw binary data to convert
77- * @return 0 and 1 ascii character bytes one for each bit of the argument
77+ * @return 0 and 1 ASCII character bytes one for each bit of the argument
7878 * @see org.apache.commons.codec.BinaryEncoder#encode(byte[])
7979 */
8080 public byte [] encode (byte [] raw ) {
8181 return toAsciiBytes (raw );
8282 }
8383
8484 /**
85- * Converts an array of raw binary data into an array of ascii 0 and 1 chars.
85+ * Converts an array of raw binary data into an array of ASCII 0 and 1 chars.
8686 *
8787 * @param raw
8888 * the raw binary data to convert
89- * @return 0 and 1 ascii character chars one for each bit of the argument
89+ * @return 0 and 1 ASCII character chars one for each bit of the argument
9090 * @throws EncoderException
9191 * if the argument is not a byte[]
9292 * @see org.apache.commons.codec.Encoder#encode(java.lang.Object)
@@ -99,10 +99,10 @@ public Object encode(Object raw) throws EncoderException {
9999 }
100100
101101 /**
102- * Decodes a byte array where each byte represents an ascii '0' or '1'.
102+ * Decodes a byte array where each byte represents an ASCII '0' or '1'.
103103 *
104104 * @param ascii
105- * each byte represents an ascii '0' or '1'
105+ * each byte represents an ASCII '0' or '1'
106106 * @return the raw encoded binary where each bit corresponds to a byte in the byte array argument
107107 * @throws DecoderException
108108 * if argument is not a byte[], char[] or String
@@ -125,10 +125,10 @@ public Object decode(Object ascii) throws DecoderException {
125125 }
126126
127127 /**
128- * Decodes a byte array where each byte represents an ascii '0' or '1'.
128+ * Decodes a byte array where each byte represents an ASCII '0' or '1'.
129129 *
130130 * @param ascii
131- * each byte represents an ascii '0' or '1'
131+ * each byte represents an ASCII '0' or '1'
132132 * @return the raw encoded binary where each bit corresponds to a byte in the byte array argument
133133 * @see org.apache.commons.codec.Decoder#decode(Object)
134134 */
@@ -137,7 +137,7 @@ public byte[] decode(byte[] ascii) {
137137 }
138138
139139 /**
140- * Decodes a String where each char of the String represents an ascii '0' or '1'.
140+ * Decodes a String where each char of the String represents an ASCII '0' or '1'.
141141 *
142142 * @param ascii
143143 * String of '0' and '1' characters
@@ -157,10 +157,10 @@ public byte[] toByteArray(String ascii) {
157157 //
158158 // ------------------------------------------------------------------------
159159 /**
160- * Decodes a byte array where each char represents an ascii '0' or '1'.
160+ * Decodes a byte array where each char represents an ASCII '0' or '1'.
161161 *
162162 * @param ascii
163- * each char represents an ascii '0' or '1'
163+ * each char represents an ASCII '0' or '1'
164164 * @return the raw encoded binary where each bit corresponds to a char in the char array argument
165165 */
166166 public static byte [] fromAscii (char [] ascii ) {
@@ -184,10 +184,10 @@ public static byte[] fromAscii(char[] ascii) {
184184 }
185185
186186 /**
187- * Decodes a byte array where each byte represents an ascii '0' or '1'.
187+ * Decodes a byte array where each byte represents an ASCII '0' or '1'.
188188 *
189189 * @param ascii
190- * each byte represents an ascii '0' or '1'
190+ * each byte represents an ASCII '0' or '1'
191191 * @return the raw encoded binary where each bit corresponds to a byte in the byte array argument
192192 */
193193 public static byte [] fromAscii (byte [] ascii ) {
@@ -211,7 +211,7 @@ public static byte[] fromAscii(byte[] ascii) {
211211 }
212212
213213 /**
214- * Converts an array of raw binary data into an array of ascii 0 and 1 character bytes - each byte is a truncated
214+ * Converts an array of raw binary data into an array of ASCII 0 and 1 character bytes - each byte is a truncated
215215 * char.
216216 *
217217 * @param raw
@@ -242,7 +242,7 @@ public static byte[] toAsciiBytes(byte[] raw) {
242242 }
243243
244244 /**
245- * Converts an array of raw binary data into an array of ascii 0 and 1 characters.
245+ * Converts an array of raw binary data into an array of ASCII 0 and 1 characters.
246246 *
247247 * @param raw
248248 * the raw binary data to convert
@@ -272,7 +272,7 @@ public static char[] toAsciiChars(byte[] raw) {
272272 }
273273
274274 /**
275- * Converts an array of raw binary data into a String of ascii 0 and 1 characters.
275+ * Converts an array of raw binary data into a String of ASCII 0 and 1 characters.
276276 *
277277 * @param raw
278278 * the raw binary data to convert
0 commit comments