Skip to content

Commit fd375f6

Browse files
committed
Javadoc: English, not Latin
1 parent 1c23ee9 commit fd375f6

File tree

11 files changed

+38
-38
lines changed

11 files changed

+38
-38
lines changed

src/main/java/org/apache/commons/codec/binary/Base32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private Base32(final int lineLength, final byte[] lineSeparator, final byte[] en
385385
* inAvail set to "-1" to alert decoder that EOF has been reached. The "-1" call is not necessary when decoding, but it doesn't hurt, either.
386386
* </p>
387387
* <p>
388-
* Ignores all non-Base32 characters. This is how chunked (e.g. 76 character) data is handled, since CR and LF are silently ignored, but has implications
388+
* Ignores all non-Base32 characters. This is how chunked (for example 76 character) data is handled, since CR and LF are silently ignored, but has implications
389389
* for other bytes, too. This method subscribes to the garbage-in, garbage-out philosophy: it will not check the provided data for validity.
390390
* </p>
391391
* <p>

src/main/java/org/apache/commons/codec/binary/Base32InputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public Base32InputStream(final InputStream inputStream, final boolean doEncode)
9090
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
9191
* doEncode is false, lineLength is ignored.
9292
* @param lineSeparator
93-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
93+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
9494
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
9595
*/
9696
public Base32InputStream(final InputStream inputStream, final boolean doEncode, final int lineLength, final byte[] lineSeparator) {
@@ -110,7 +110,7 @@ public Base32InputStream(final InputStream inputStream, final boolean doEncode,
110110
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
111111
* doEncode is false, lineLength is ignored.
112112
* @param lineSeparator
113-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
113+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
114114
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
115115
* @param decodingPolicy
116116
* The decoding policy.

src/main/java/org/apache/commons/codec/binary/Base32OutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public Base32OutputStream(final OutputStream outputStream, final boolean doEncod
9494
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
9595
* doEncode is false, lineLength is ignored.
9696
* @param lineSeparator
97-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
97+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
9898
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
9999
*/
100100
public Base32OutputStream(final OutputStream outputStream, final boolean doEncode, final int lineLength, final byte[] lineSeparator) {
@@ -114,7 +114,7 @@ public Base32OutputStream(final OutputStream outputStream, final boolean doEncod
114114
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
115115
* doEncode is false, lineLength is ignored.
116116
* @param lineSeparator
117-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
117+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
118118
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
119119
* @param decodingPolicy The decoding policy.
120120
* @since 1.15

src/main/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ private byte[] calculateDecodeTable(final byte[] encodeTable) {
721721
* call is not necessary when decoding, but it doesn't hurt, either.
722722
* </p>
723723
* <p>
724-
* Ignores all non-base64 characters. This is how chunked (e.g. 76 character) data is handled, since CR and LF are
724+
* Ignores all non-base64 characters. This is how chunked (for example 76 character) data is handled, since CR and LF are
725725
* silently ignored, but has implications for other bytes, too. This method subscribes to the garbage-in,
726726
* garbage-out philosophy: it will not check the provided data for validity.
727727
* </p>

src/main/java/org/apache/commons/codec/binary/Base64InputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public Base64InputStream(final InputStream inputStream, final boolean doEncode)
9494
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
9595
* doEncode is false, lineLength is ignored.
9696
* @param lineSeparator
97-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
97+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
9898
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
9999
*/
100100
public Base64InputStream(final InputStream inputStream, final boolean doEncode, final int lineLength, final byte[] lineSeparator) {
@@ -114,7 +114,7 @@ public Base64InputStream(final InputStream inputStream, final boolean doEncode,
114114
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
115115
* doEncode is false, lineLength is ignored.
116116
* @param lineSeparator
117-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
117+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
118118
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
119119
* @param decodingPolicy The decoding policy.
120120
* @since 1.15

src/main/java/org/apache/commons/codec/binary/Base64OutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Base64OutputStream(final OutputStream outputStream, final boolean doEncod
9898
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
9999
* doEncode is false, lineLength is ignored.
100100
* @param lineSeparator
101-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
101+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
102102
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
103103
*/
104104
public Base64OutputStream(final OutputStream outputStream, final boolean doEncode, final int lineLength, final byte[] lineSeparator) {
@@ -118,7 +118,7 @@ public Base64OutputStream(final OutputStream outputStream, final boolean doEncod
118118
* the nearest multiple of 4). If lineLength &lt;= 0, the encoded data is not divided into lines. If
119119
* doEncode is false, lineLength is ignored.
120120
* @param lineSeparator
121-
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (e.g. \r\n).
121+
* If doEncode is true, each line of encoded data will be terminated with this byte sequence (for example \r\n).
122122
* If lineLength &lt;= 0, the lineSeparator is not used. If doEncode is false lineSeparator is ignored.
123123
* @param decodingPolicy The decoding policy.
124124
* @since 1.15

src/main/java/org/apache/commons/codec/binary/BaseNCodec.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ static int toLength(final byte[] array) {
394394
/** Pad byte. Instance variable just in case it needs to vary later. */
395395
protected final byte pad;
396396

397-
/** Number of bytes in each full block of unencoded data, e.g. 4 for Base64 and 5 for Base32 */
397+
/** Number of bytes in each full block of unencoded data, for example 4 for Base64 and 5 for Base32 */
398398
private final int unencodedBlockSize;
399399

400-
/** Number of bytes in each full block of encoded data, e.g. 3 for Base64 and 8 for Base32 */
400+
/** Number of bytes in each full block of encoded data, for example 3 for Base64 and 8 for Base32 */
401401
private final int encodedBlockSize;
402402

403403
/**
@@ -440,8 +440,8 @@ static int toLength(final byte[] array) {
440440
* If {@code chunkSeparatorLength} is zero, then chunking is disabled.
441441
* </p>
442442
*
443-
* @param unencodedBlockSize the size of an unencoded block (e.g. Base64 = 3)
444-
* @param encodedBlockSize the size of an encoded block (e.g. Base64 = 4)
443+
* @param unencodedBlockSize the size of an unencoded block (for example Base64 = 3)
444+
* @param encodedBlockSize the size of an encoded block (for example Base64 = 4)
445445
* @param lineLength if &gt; 0, use chunking with a length {@code lineLength}
446446
* @param chunkSeparatorLength the chunk separator length, if relevant
447447
*/
@@ -456,8 +456,8 @@ protected BaseNCodec(final int unencodedBlockSize, final int encodedBlockSize, f
456456
* If {@code chunkSeparatorLength} is zero, then chunking is disabled.
457457
* </p>
458458
*
459-
* @param unencodedBlockSize the size of an unencoded block (e.g. Base64 = 3)
460-
* @param encodedBlockSize the size of an encoded block (e.g. Base64 = 4)
459+
* @param unencodedBlockSize the size of an unencoded block (for example Base64 = 3)
460+
* @param encodedBlockSize the size of an encoded block (for example Base64 = 4)
461461
* @param lineLength if &gt; 0, use chunking with a length {@code lineLength}
462462
* @param chunkSeparatorLength the chunk separator length, if relevant
463463
* @param pad byte used as padding byte.
@@ -473,8 +473,8 @@ protected BaseNCodec(final int unencodedBlockSize, final int encodedBlockSize, f
473473
* If {@code chunkSeparatorLength} is zero, then chunking is disabled.
474474
* </p>
475475
*
476-
* @param unencodedBlockSize the size of an unencoded block (e.g. Base64 = 3)
477-
* @param encodedBlockSize the size of an encoded block (e.g. Base64 = 4)
476+
* @param unencodedBlockSize the size of an unencoded block (for example Base64 = 3)
477+
* @param encodedBlockSize the size of an encoded block (for example Base64 = 4)
478478
* @param lineLength if &gt; 0, use chunking with a length {@code lineLength}
479479
* @param chunkSeparatorLength the chunk separator length, if relevant
480480
* @param pad byte used as padding byte.

src/main/java/org/apache/commons/codec/digest/Crypt.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static String crypt(final String key) {
126126
* </p>
127127
* <p>
128128
* The rest of the salt string is drawn from the set {@code [a-zA-Z0-9./]} and is cut at the maximum length or if a
129-
* {@code "$"} sign is encountered. It is therefore valid to enter a complete hash value as salt to e.g. verify a
129+
* {@code "$"} sign is encountered. It is therefore valid to enter a complete hash value as salt to for example verify a
130130
* password with:
131131
* </p>
132132
* <pre>
@@ -154,7 +154,7 @@ public static String crypt(final String key) {
154154
* </pre>
155155
* <p>
156156
* This method comes in a variation that accepts a byte[] array to support input strings that are not encoded in
157-
* UTF-8 but e.g. in ISO-8859-1 where equal characters result in different byte values.
157+
* UTF-8 but for example in ISO-8859-1 where equal characters result in different byte values.
158158
* </p>
159159
*
160160
* @see "The man page of the libc crypt (3) function."

src/main/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class DigestUtils {
6565
/**
6666
* Reads through a byte array and returns the digest for the data. Provided for symmetry with other methods.
6767
*
68-
* @param messageDigest The MessageDigest to use (e.g. MD5)
68+
* @param messageDigest The MessageDigest to use (for example MD5)
6969
* @param data Data to digest
7070
* @return the digest
7171
* @since 1.11
@@ -77,7 +77,7 @@ public static byte[] digest(final MessageDigest messageDigest, final byte[] data
7777
/**
7878
* Reads through a ByteBuffer and returns the digest for the data
7979
*
80-
* @param messageDigest The MessageDigest to use (e.g. MD5)
80+
* @param messageDigest The MessageDigest to use (for example MD5)
8181
* @param data Data to digest
8282
* @return the digest
8383
* @since 1.11
@@ -90,7 +90,7 @@ public static byte[] digest(final MessageDigest messageDigest, final ByteBuffer
9090
/**
9191
* Reads through a File and returns the digest for the data
9292
*
93-
* @param messageDigest The MessageDigest to use (e.g. MD5)
93+
* @param messageDigest The MessageDigest to use (for example MD5)
9494
* @param data Data to digest
9595
* @return the digest
9696
* @throws IOException On error reading from the stream
@@ -103,7 +103,7 @@ public static byte[] digest(final MessageDigest messageDigest, final File data)
103103
/**
104104
* Reads through an InputStream and returns the digest for the data
105105
*
106-
* @param messageDigest The MessageDigest to use (e.g. MD5)
106+
* @param messageDigest The MessageDigest to use (for example MD5)
107107
* @param data Data to digest
108108
* @return the digest
109109
* @throws IOException On error reading from the stream
@@ -116,7 +116,7 @@ public static byte[] digest(final MessageDigest messageDigest, final InputStream
116116
/**
117117
* Reads through a File and returns the digest for the data
118118
*
119-
* @param messageDigest The MessageDigest to use (e.g. MD5)
119+
* @param messageDigest The MessageDigest to use (for example MD5)
120120
* @param data Data to digest
121121
* @param options options How to open the file
122122
* @return the digest
@@ -130,7 +130,7 @@ public static byte[] digest(final MessageDigest messageDigest, final Path data,
130130
/**
131131
* Reads through a RandomAccessFile using non-blocking-io (NIO) and returns the digest for the data
132132
*
133-
* @param messageDigest The MessageDigest to use (e.g. MD5)
133+
* @param messageDigest The MessageDigest to use (for example MD5)
134134
* @param data Data to digest
135135
* @return the digest
136136
* @throws IOException On error reading from the stream
@@ -1269,7 +1269,7 @@ public static MessageDigest updateDigest(final MessageDigest messageDigest, fina
12691269
/**
12701270
* Reads through a File and updates the digest for the data
12711271
*
1272-
* @param digest The MessageDigest to use (e.g. MD5)
1272+
* @param digest The MessageDigest to use (for example MD5)
12731273
* @param data Data to digest
12741274
* @return the digest
12751275
* @throws IOException On error reading from the stream
@@ -1286,7 +1286,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final File
12861286
*
12871287
* TODO Decide if this should be public.
12881288
*
1289-
* @param digest The MessageDigest to use (e.g. MD5)
1289+
* @param digest The MessageDigest to use (for example MD5)
12901290
* @param data Data to digest
12911291
* @return the digest
12921292
* @throws IOException On error reading from the stream
@@ -1305,7 +1305,7 @@ private static MessageDigest updateDigest(final MessageDigest digest, final File
13051305
/**
13061306
* Reads through an InputStream and updates the digest for the data
13071307
*
1308-
* @param digest The MessageDigest to use (e.g. MD5)
1308+
* @param digest The MessageDigest to use (for example MD5)
13091309
* @param inputStream Data to digest
13101310
* @return the digest
13111311
* @throws IOException On error reading from the stream
@@ -1326,7 +1326,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Input
13261326
/**
13271327
* Reads through a Path and updates the digest for the data
13281328
*
1329-
* @param digest The MessageDigest to use (e.g. MD5)
1329+
* @param digest The MessageDigest to use (for example MD5)
13301330
* @param path Data to digest
13311331
* @param options options How to open the file
13321332
* @return the digest
@@ -1342,7 +1342,7 @@ public static MessageDigest updateDigest(final MessageDigest digest, final Path
13421342
/**
13431343
* Reads through a RandomAccessFile and updates the digest for the data using non-blocking-io (NIO)
13441344
*
1345-
* @param digest The MessageDigest to use (e.g. MD5)
1345+
* @param digest The MessageDigest to use (for example MD5)
13461346
* @param data Data to digest
13471347
* @return the digest
13481348
* @throws IOException On error reading from the stream

src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public DaitchMokotoffSoundex() {
332332
/**
333333
* Creates a new instance.
334334
* <p>
335-
* With ASCII-folding enabled, certain accented characters will be transformed to equivalent ASCII characters, e.g.
335+
* With ASCII-folding enabled, certain accented characters will be transformed to equivalent ASCII characters, for example
336336
* è -&gt; e.
337337
* </p>
338338
*

0 commit comments

Comments
 (0)