Skip to content

Commit 919d3ec

Browse files
committed
Apply patch from [CODEC-128] Documentation spelling fixes. https://issues.apache.org/jira/secure/attachment/12494312/codec-spelling.patch
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1170351 13f79535-47bb-0310-9956-ffa450edef68
1 parent 770daa9 commit 919d3ec

9 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/java/org/apache/commons/codec/CharEncoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* </ul>
4646
*
4747
* This perhaps would best belong in the [lang] project. Even if a similar interface is defined in [lang], it is not
48-
* forseen that [codec] would be made to depend on [lang].
48+
* foreseen that [codec] would be made to depend on [lang].
4949
*
5050
* @see <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/nio/charset/Charset.html">Standard charsets</a>
5151
* @author Apache Software Foundation

src/java/org/apache/commons/codec/Encoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface Encoder {
3333
* as an Object. The Objects here may just be <code>byte[]</code>
3434
* or <code>String</code>s depending on the implementation used.
3535
*
36-
* @param source An object ot encode
36+
* @param source An object to encode
3737
*
3838
* @return An "encoded" Object
3939
*

src/java/org/apache/commons/codec/StringEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface StringEncoder extends Encoder {
3333
* @return the encoded String
3434
*
3535
* @throws EncoderException thrown if there is
36-
* an error conidition during the Encoding process.
36+
* an error condition during the encoding process.
3737
*/
3838
String encode(String source) throws EncoderException;
3939
}

src/java/org/apache/commons/codec/binary/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private static IllegalStateException newIllegalStateException(String charsetName
175175
* @param charsetName
176176
* The name of a required {@link java.nio.charset.Charset}
177177
* @return A new <code>String</code> decoded from the specified array of bytes using the given charset,
178-
* or <code>null</code> if the input byte arrray was <code>null</code>.
178+
* or <code>null</code> if the input byte array was <code>null</code>.
179179
* @throws IllegalStateException
180180
* Thrown when a {@link UnsupportedEncodingException} is caught, which should never happen for a
181181
* required charset name.

src/java/org/apache/commons/codec/language/ColognePhonetic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
*
4343
* <li>
4444
* <h3>Step 1:</h3>
45-
* After preprocessing (convertion to upper case, transcription of <a
45+
* After preprocessing (conversion to upper case, transcription of <a
4646
* href="http://en.wikipedia.org/wiki/Germanic_umlaut">germanic umlauts</a>, removal of non alphabetical characters) the
47-
* letters of the supplied text are replaced by their phonetic code according to the folowing table.
47+
* letters of the supplied text are replaced by their phonetic code according to the following table.
4848
* <table border="1">
4949
* <tbody>
5050
* <tr>

src/java/org/apache/commons/codec/language/RefinedSoundex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ char getMappingCode(char c) {
163163
}
164164

165165
/**
166-
* Retreives the Refined Soundex code for a given String object.
166+
* Retrieves the Refined Soundex code for a given String object.
167167
*
168168
* @param str
169169
* String to encode using the Refined Soundex algorithm

src/java/org/apache/commons/codec/net/QCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public String getDefaultCharset() {
294294
}
295295

296296
/**
297-
* Tests if optional tranformation of SPACE characters is to be used
297+
* Tests if optional transformation of SPACE characters is to be used
298298
*
299299
* @return <code>true</code> if SPACE characters are to be transformed, <code>false</code> otherwise
300300
*/
@@ -303,7 +303,7 @@ public boolean isEncodeBlanks() {
303303
}
304304

305305
/**
306-
* Defines whether optional tranformation of SPACE characters is to be used
306+
* Defines whether optional transformation of SPACE characters is to be used
307307
*
308308
* @param b
309309
* <code>true</code> if SPACE characters are to be transformed, <code>false</code> otherwise

src/java/org/apache/commons/codec/net/RFC1522Codec.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ abstract class RFC1522Codec {
6565
* Applies an RFC 1522 compliant encoding scheme to the given string of text with the
6666
* given charset. This method constructs the "encoded-word" header common to all the
6767
* RFC 1522 codecs and then invokes {@link #doEncoding(byte [])} method of a concrete
68-
* class to perform the specific enconding.
68+
* class to perform the specific encoding.
6969
*
7070
* @param text a string to encode
7171
* @param charset a charset to be used
7272
*
7373
* @return RFC 1522 compliant "encoded-word"
7474
*
75-
* @throws EncoderException thrown if there is an error conidition during the Encoding
75+
* @throws EncoderException thrown if there is an error condition during the Encoding
7676
* process.
7777
* @throws UnsupportedEncodingException thrown if charset is not supported
7878
*
@@ -99,12 +99,12 @@ protected String encodeText(final String text, final String charset)
9999
/**
100100
* Applies an RFC 1522 compliant decoding scheme to the given string of text. This method
101101
* processes the "encoded-word" header common to all the RFC 1522 codecs and then invokes
102-
* {@link #doEncoding(byte [])} method of a concrete class to perform the specific deconding.
102+
* {@link #doEncoding(byte [])} method of a concrete class to perform the specific decoding.
103103
*
104104
* @param text a string to decode
105105
* @return A new decoded String or <code>null</code> if the input is <code>null</code>.
106106
*
107-
* @throws DecoderException thrown if there is an error conidition during the Decoding
107+
* @throws DecoderException thrown if there is an error condition during the decoding
108108
* process.
109109
* @throws UnsupportedEncodingException thrown if charset specified in the "encoded-word"
110110
* header is not supported

src/java/org/apache/commons/codec/package.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h4><a name="Common Encoders">Binary Encoders</a></h4>
5050
</td>
5151
<td>
5252
Converts an array of bytes into an array of characters
53-
representing the hexidecimal values of each byte in order
53+
representing the hexadecimal values of each byte in order
5454
</td>
5555
<td>Production</td>
5656
</tr>

0 commit comments

Comments
 (0)