Skip to content

Commit 21d7caa

Browse files
committed
Repackage .codec. to .codec2. Change POM grouId from commons-codec to org.apache.commons. Change artifactId from commons-codec to commons-codec2.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1156841 13f79535-47bb-0310-9956-ffa450edef68
1 parent c2809b4 commit 21d7caa

File tree

93 files changed

+232
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+232
-226
lines changed

default.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ junit.jar = ${junit.home}/junit-4.8.2.jar
2828
component.name = commons-codec
2929

3030
# The primary package name of this component
31-
component.package = org.apache.commons.codec
31+
component.package = org.apache.commons.codec2
3232

3333
# The title of this component
3434
component.title = Encode/Decode Utilities

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ limitations under the License.
2323
<version>21</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
26-
<groupId>commons-codec</groupId>
27-
<artifactId>commons-codec</artifactId>
26+
<groupId>org.apache.commons</groupId>
27+
<artifactId>commons-codec2</artifactId>
2828
<version>2.0-SNAPSHOT</version>
2929
<name>Commons Codec</name>
3030
<inceptionYear>2002</inceptionYear>
@@ -310,7 +310,13 @@ limitations under the License.
310310
<artifactId>clirr-maven-plugin</artifactId>
311311
<version>2.3</version>
312312
<configuration>
313-
<comparisonVersion>1.5</comparisonVersion>
313+
<comparisonArtifacts>
314+
<comparisonArtifact>
315+
<groupId>commons-codec</groupId>
316+
<artifactId>commons-codec</artifactId>
317+
<version>1.5</version>
318+
</comparisonArtifact>
319+
</comparisonArtifacts>
314320
<minSeverity>info</minSeverity>
315321
</configuration>
316322
</plugin>

src/java/org/apache/commons/codec/BinaryDecoder.java renamed to src/java/org/apache/commons/codec2/BinaryDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Defines common decoding methods for byte array decoders.

src/java/org/apache/commons/codec/BinaryEncoder.java renamed to src/java/org/apache/commons/codec2/BinaryEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Defines common encoding methods for byte array encoders.

src/java/org/apache/commons/codec/CharEncoding.java renamed to src/java/org/apache/commons/codec2/CharEncoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Character encoding names required of every implementation of the Java platform.

src/java/org/apache/commons/codec/Decoder.java renamed to src/java/org/apache/commons/codec2/Decoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* <p>Provides the highest level of abstraction for Decoders.

src/java/org/apache/commons/codec/DecoderException.java renamed to src/java/org/apache/commons/codec2/DecoderException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Thrown when there is a failure condition during the decoding process. This exception is thrown when a {@link Decoder}

src/java/org/apache/commons/codec/Encoder.java renamed to src/java/org/apache/commons/codec2/Encoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* <p>Provides the highest level of abstraction for Encoders.

src/java/org/apache/commons/codec/EncoderException.java renamed to src/java/org/apache/commons/codec2/EncoderException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Thrown when there is a failure condition during the encoding process. This exception is thrown when an

src/java/org/apache/commons/codec/StringDecoder.java renamed to src/java/org/apache/commons/codec2/StringDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Defines common decoding methods for String decoders.

src/java/org/apache/commons/codec/StringEncoder.java renamed to src/java/org/apache/commons/codec2/StringEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
/**
2121
* Defines common encoding methods for String encoders.

src/java/org/apache/commons/codec/StringEncoderComparator.java renamed to src/java/org/apache/commons/codec2/StringEncoderComparator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec;
18+
package org.apache.commons.codec2;
1919

2020
import java.util.Comparator;
2121

src/java/org/apache/commons/codec/binary/Base32.java renamed to src/java/org/apache/commons/codec2/binary/Base32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
/**
2121
* Provides Base32 encoding and decoding as defined by <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>.

src/java/org/apache/commons/codec/binary/Base32InputStream.java renamed to src/java/org/apache/commons/codec2/binary/Base32InputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.InputStream;
2121

src/java/org/apache/commons/codec/binary/Base32OutputStream.java renamed to src/java/org/apache/commons/codec2/binary/Base32OutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.OutputStream;
2121

src/java/org/apache/commons/codec/binary/Base64.java renamed to src/java/org/apache/commons/codec2/binary/Base64.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.math.BigInteger;
2121

src/java/org/apache/commons/codec/binary/Base64InputStream.java renamed to src/java/org/apache/commons/codec2/binary/Base64InputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.InputStream;
2121

src/java/org/apache/commons/codec/binary/Base64OutputStream.java renamed to src/java/org/apache/commons/codec2/binary/Base64OutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.OutputStream;
2121

src/java/org/apache/commons/codec/binary/BaseNCodec.java renamed to src/java/org/apache/commons/codec2/binary/BaseNCodec.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

20-
import org.apache.commons.codec.BinaryDecoder;
21-
import org.apache.commons.codec.BinaryEncoder;
22-
import org.apache.commons.codec.DecoderException;
23-
import org.apache.commons.codec.EncoderException;
20+
import org.apache.commons.codec2.BinaryDecoder;
21+
import org.apache.commons.codec2.BinaryEncoder;
22+
import org.apache.commons.codec2.DecoderException;
23+
import org.apache.commons.codec2.EncoderException;
2424

2525
/**
2626
* Abstract superclass for Base-N encoders and decoders.

src/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java renamed to src/java/org/apache/commons/codec2/binary/BaseNCodecInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.FilterInputStream;
2121
import java.io.IOException;

src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java renamed to src/java/org/apache/commons/codec2/binary/BaseNCodecOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.FilterOutputStream;
2121
import java.io.IOException;

src/java/org/apache/commons/codec/binary/BinaryCodec.java renamed to src/java/org/apache/commons/codec2/binary/BinaryCodec.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

20-
import org.apache.commons.codec.BinaryDecoder;
21-
import org.apache.commons.codec.BinaryEncoder;
22-
import org.apache.commons.codec.DecoderException;
23-
import org.apache.commons.codec.EncoderException;
20+
import org.apache.commons.codec2.BinaryDecoder;
21+
import org.apache.commons.codec2.BinaryEncoder;
22+
import org.apache.commons.codec2.DecoderException;
23+
import org.apache.commons.codec2.EncoderException;
2424

2525
/**
2626
* Converts between byte arrays and strings of "0"s and "1"s.
@@ -75,7 +75,7 @@ public class BinaryCodec implements BinaryDecoder, BinaryEncoder {
7575
* @param raw
7676
* the raw binary data to convert
7777
* @return 0 and 1 ASCII character bytes one for each bit of the argument
78-
* @see org.apache.commons.codec.BinaryEncoder#encode(byte[])
78+
* @see org.apache.commons.codec2.BinaryEncoder#encode(byte[])
7979
*/
8080
public byte[] encode(byte[] raw) {
8181
return toAsciiBytes(raw);
@@ -89,7 +89,7 @@ public byte[] encode(byte[] raw) {
8989
* @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[]
92-
* @see org.apache.commons.codec.Encoder#encode(Object)
92+
* @see org.apache.commons.codec2.Encoder#encode(Object)
9393
*/
9494
public Object encode(Object raw) throws EncoderException {
9595
if (!(raw instanceof byte[])) {
@@ -106,7 +106,7 @@ public Object encode(Object raw) throws EncoderException {
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
109-
* @see org.apache.commons.codec.Decoder#decode(Object)
109+
* @see org.apache.commons.codec2.Decoder#decode(Object)
110110
*/
111111
public Object decode(Object ascii) throws DecoderException {
112112
if (ascii == null) {
@@ -130,7 +130,7 @@ public Object decode(Object ascii) throws DecoderException {
130130
* @param ascii
131131
* 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
133-
* @see org.apache.commons.codec.Decoder#decode(Object)
133+
* @see org.apache.commons.codec2.Decoder#decode(Object)
134134
*/
135135
public byte[] decode(byte[] ascii) {
136136
return fromAscii(ascii);
@@ -142,7 +142,7 @@ public byte[] decode(byte[] ascii) {
142142
* @param ascii
143143
* String of '0' and '1' characters
144144
* @return the raw encoded binary where each bit corresponds to a byte in the byte array argument
145-
* @see org.apache.commons.codec.Decoder#decode(Object)
145+
* @see org.apache.commons.codec2.Decoder#decode(Object)
146146
*/
147147
public byte[] toByteArray(String ascii) {
148148
if (ascii == null) {
@@ -228,7 +228,7 @@ private static boolean isEmpty(byte[] array) {
228228
* @param raw
229229
* the raw binary data to convert
230230
* @return an array of 0 and 1 character bytes for each bit of the argument
231-
* @see org.apache.commons.codec.BinaryEncoder#encode(byte[])
231+
* @see org.apache.commons.codec2.BinaryEncoder#encode(byte[])
232232
*/
233233
public static byte[] toAsciiBytes(byte[] raw) {
234234
if (isEmpty(raw)) {
@@ -258,7 +258,7 @@ public static byte[] toAsciiBytes(byte[] raw) {
258258
* @param raw
259259
* the raw binary data to convert
260260
* @return an array of 0 and 1 characters for each bit of the argument
261-
* @see org.apache.commons.codec.BinaryEncoder#encode(byte[])
261+
* @see org.apache.commons.codec2.BinaryEncoder#encode(byte[])
262262
*/
263263
public static char[] toAsciiChars(byte[] raw) {
264264
if (isEmpty(raw)) {
@@ -288,7 +288,7 @@ public static char[] toAsciiChars(byte[] raw) {
288288
* @param raw
289289
* the raw binary data to convert
290290
* @return a String of 0 and 1 characters representing the binary data
291-
* @see org.apache.commons.codec.BinaryEncoder#encode(byte[])
291+
* @see org.apache.commons.codec2.BinaryEncoder#encode(byte[])
292292
*/
293293
public static String toAsciiString(byte[] raw) {
294294
return new String(toAsciiChars(raw));

src/java/org/apache/commons/codec/binary/Hex.java renamed to src/java/org/apache/commons/codec2/binary/Hex.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.UnsupportedEncodingException;
2121

22-
import org.apache.commons.codec.BinaryDecoder;
23-
import org.apache.commons.codec.BinaryEncoder;
24-
import org.apache.commons.codec.CharEncoding;
25-
import org.apache.commons.codec.DecoderException;
26-
import org.apache.commons.codec.EncoderException;
22+
import org.apache.commons.codec2.BinaryDecoder;
23+
import org.apache.commons.codec2.BinaryEncoder;
24+
import org.apache.commons.codec2.CharEncoding;
25+
import org.apache.commons.codec2.DecoderException;
26+
import org.apache.commons.codec2.EncoderException;
2727

2828
/**
2929
* Converts hexadecimal Strings. The charset used for certain operation can be set, the default is set in

src/java/org/apache/commons/codec/binary/StringUtils.java renamed to src/java/org/apache/commons/codec2/binary/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.binary;
18+
package org.apache.commons.codec2.binary;
1919

2020
import java.io.UnsupportedEncodingException;
2121

22-
import org.apache.commons.codec.CharEncoding;
22+
import org.apache.commons.codec2.CharEncoding;
2323

2424
/**
2525
* Converts String to and from bytes using the encodings required by the Java specification. These encodings are specified in <a

src/java/org/apache/commons/codec/digest/DigestUtils.java renamed to src/java/org/apache/commons/codec2/digest/DigestUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.digest;
18+
package org.apache.commons.codec2.digest;
1919

2020
import java.io.IOException;
2121
import java.io.InputStream;
2222
import java.security.MessageDigest;
2323
import java.security.NoSuchAlgorithmException;
2424

25-
import org.apache.commons.codec.binary.Hex;
26-
import org.apache.commons.codec.binary.StringUtils;
25+
import org.apache.commons.codec2.binary.Hex;
26+
import org.apache.commons.codec2.binary.StringUtils;
2727

2828
/**
2929
* Operations to simplify common {@link java.security.MessageDigest} tasks. This class is thread safe.

src/java/org/apache/commons/codec/language/AbstractCaverphone.java renamed to src/java/org/apache/commons/codec2/language/AbstractCaverphone.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.language;
18+
package org.apache.commons.codec2.language;
1919

20-
import org.apache.commons.codec.EncoderException;
21-
import org.apache.commons.codec.StringEncoder;
20+
import org.apache.commons.codec2.EncoderException;
21+
import org.apache.commons.codec2.StringEncoder;
2222

2323
/**
2424
* Encodes a string into a Caverphone value.

src/java/org/apache/commons/codec/language/Caverphone1.java renamed to src/java/org/apache/commons/codec2/language/Caverphone1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.language;
18+
package org.apache.commons.codec2.language;
1919

2020
/**
2121
* Encodes a string into a Caverphone 1.0 value.

src/java/org/apache/commons/codec/language/Caverphone2.java renamed to src/java/org/apache/commons/codec2/language/Caverphone2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.codec.language;
18+
package org.apache.commons.codec2.language;
1919

2020
/**
2121
* Encodes a string into a Caverphone 2.0 value.

0 commit comments

Comments
 (0)