Deprecated List (Apache Commons Codec 1.22.0 API)
Description: deprecated elements

# Deprecated API

## Contents

- Classes
- Fields
- Methods
- Constructors

- Deprecated Classes
  Class
  Description
  org.apache.commons.codec.digest.MurmurHash3.IncrementalHash32
  Use IncrementalHash32x86. This corrects the processing of trailing bytes.
  org.apache.commons.codec.language.Caverphone
  1.5 Replaced by `Caverphone2`, will be removed in 2.0.

- Deprecated Fields
  Field
  Description
  org.apache.commons.codec.binary.BaseNCodec.PAD
  Use `BaseNCodec.pad`. Will be removed in 2.0.
  org.apache.commons.codec.Charsets.ISO_8859_1
  Use `StandardCharsets.ISO_8859_1` instead.
  org.apache.commons.codec.Charsets.US_ASCII
  Use `StandardCharsets.US_ASCII` instead.
  org.apache.commons.codec.Charsets.UTF_16
  Use `StandardCharsets.UTF_16` instead.
  org.apache.commons.codec.Charsets.UTF_16BE
  Use `StandardCharsets.UTF_16BE` instead.
  org.apache.commons.codec.Charsets.UTF_16LE
  Use `StandardCharsets.UTF_16LE` instead.
  org.apache.commons.codec.Charsets.UTF_8
  Use `StandardCharsets.UTF_8` instead.
  org.apache.commons.codec.digest.MurmurHash3.NULL_HASHCODE
  This is not used internally and will be removed in a future release.
  org.apache.commons.codec.language.bm.Rule.ALL
  This is unused.
  org.apache.commons.codec.net.URLCodec.charset
  TODO: This field will be changed to a private final Charset in 2.0. (CODEC-126)
  org.apache.commons.codec.net.URLCodec.WWW_FORM_URL
  1.11 Will be removed in 2.0 (CODEC-230)

- Deprecated Methods
  Method
  Description
  org.apache.commons.codec.binary.Base64.isArrayByteBase64(byte[])
  1.5 Use `Base64.isBase64(byte[])`, will be removed in 2.0.
  org.apache.commons.codec.binary.BaseNCodec.isWhiteSpace(byte)
  Use `Character.isWhitespace(int)`.
  org.apache.commons.codec.digest.DigestUtils.getShaDigest()
  (1.11) Use `DigestUtils.getSha1Digest()`
  org.apache.commons.codec.digest.DigestUtils.sha(byte[])
  (1.11) Use `DigestUtils.sha1(byte[])`
  org.apache.commons.codec.digest.DigestUtils.sha(InputStream)
  (1.11) Use `DigestUtils.sha1(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.sha(String)
  (1.11) Use `DigestUtils.sha1(String)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(byte[])
  (1.11) Use `DigestUtils.sha1Hex(byte[])`
  org.apache.commons.codec.digest.DigestUtils.shaHex(InputStream)
  (1.11) Use `DigestUtils.sha1Hex(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(String)
  (1.11) Use `DigestUtils.sha1Hex(String)`
  org.apache.commons.codec.digest.HmacUtils.getHmacMd5(byte[])
  (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_MD5, byte[])`.
  org.apache.commons.codec.digest.HmacUtils.getHmacSha1(byte[])
  (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_1, byte[])`.
  org.apache.commons.codec.digest.HmacUtils.getHmacSha256(byte[])
  (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_256, byte[])`.
  org.apache.commons.codec.digest.HmacUtils.getHmacSha384(byte[])
  (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_384, byte[])`.
  org.apache.commons.codec.digest.HmacUtils.getHmacSha512(byte[])
  (1.11) Use `getInitializedMac(HmacAlgorithms.HMAC_SHA_512, byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmac(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmac(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, String).hmac(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmacHex(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, byte[]).hmacHex(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacMd5Hex(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_MD5, String).hmacHex(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmac(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmac(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha1(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, String).hmac(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmacHex(byte[])`
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, byte[]).hmacHex(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha1Hex(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_1, String).hmacHex(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmac(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmac(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, String).hmac(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmacHex(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, byte[]).hmacHex(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha256Hex(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_256, String).hmacHex(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmac(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmac(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, String).hmac(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmacHex(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, byte[]).hmacHex(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha384Hex(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_384, String).hmacHex(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmac(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmac(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, String).hmac(String)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(byte[], byte[])
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmacHex(byte[])`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(byte[], InputStream)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, byte[]).hmacHex(InputStream)`.
  org.apache.commons.codec.digest.HmacUtils.hmacSha512Hex(String, String)
  (1.11) Use `new HmacUtils(HmacAlgorithms.HMAC_SHA_512, String).hmacHex(String)`.
  org.apache.commons.codec.digest.MurmurHash3.hash128(byte[], int, int, int)
  Use `MurmurHash3.hash128x64(byte[], int, int, int)`. This corrects the seed initialization.
  org.apache.commons.codec.digest.MurmurHash3.hash128(String)
  Use `MurmurHash3.hash128x64(byte[])` using the bytes returned from `String.getBytes(java.nio.charset.Charset)`.
  org.apache.commons.codec.digest.MurmurHash3.hash32(byte[])
  Use `MurmurHash3.hash32x86(byte[], int, int, int)`. This corrects the processing of trailing bytes.
  org.apache.commons.codec.digest.MurmurHash3.hash32(byte[], int)
  Use `MurmurHash3.hash32x86(byte[], int, int, int)`. This corrects the processing of trailing bytes.
  org.apache.commons.codec.digest.MurmurHash3.hash32(byte[], int, int)
  Use `MurmurHash3.hash32x86(byte[], int, int, int)`. This corrects the processing of trailing bytes.
  org.apache.commons.codec.digest.MurmurHash3.hash32(byte[], int, int, int)
  Use `MurmurHash3.hash32x86(byte[], int, int, int)`. This corrects the processing of trailing bytes.
  org.apache.commons.codec.digest.MurmurHash3.hash32(String)
  Use `MurmurHash3.hash32x86(byte[], int, int, int)` with the bytes returned from `String.getBytes(java.nio.charset.Charset)`. This corrects the processing of trailing bytes.
  org.apache.commons.codec.digest.MurmurHash3.hash64(byte[])
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[])`.
  org.apache.commons.codec.digest.MurmurHash3.hash64(byte[], int, int)
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[], int, int, int)`.
  org.apache.commons.codec.digest.MurmurHash3.hash64(byte[], int, int, int)
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[], int, int, int)`.
  org.apache.commons.codec.digest.MurmurHash3.hash64(int)
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[])` with the bytes from the `int`.
  org.apache.commons.codec.digest.MurmurHash3.hash64(long)
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[])` with the bytes from the `long`.
  org.apache.commons.codec.digest.MurmurHash3.hash64(short)
  Not part of the MurmurHash3 implementation. Use half of the hash bytes from `MurmurHash3.hash128x64(byte[])` with the bytes from the `short`.
  org.apache.commons.codec.language.bm.Rule.Phoneme.join(Rule.Phoneme)
  Since 1.9
  org.apache.commons.codec.language.Soundex.getMaxLength()
  This feature is not needed since the encoding size must be constant. Will be removed in 2.0.
  org.apache.commons.codec.language.Soundex.setMaxLength(int)
  This feature is not needed since the encoding size must be constant. Will be removed in 2.0.
  org.apache.commons.codec.net.URLCodec.getEncoding()
  Use `URLCodec.getDefaultCharset()`, will be removed in 2.0.

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.codec.binary.Base16(boolean)
  Use `Base16.builder()` and `Base16.Builder`.
  org.apache.commons.codec.binary.Base16(boolean, CodecPolicy)
  Use `Base16.builder()` and `Base16.Builder`.
  org.apache.commons.codec.binary.Base16InputStream(InputStream, boolean)
  org.apache.commons.codec.binary.Base16InputStream(InputStream, boolean, boolean)
  org.apache.commons.codec.binary.Base16InputStream(InputStream, boolean, boolean, CodecPolicy)
  org.apache.commons.codec.binary.Base16OutputStream(OutputStream, boolean)
  Use `Base16OutputStream.builder()` and `Base16OutputStream.Builder`.
  org.apache.commons.codec.binary.Base16OutputStream(OutputStream, boolean, boolean)
  Use `Base16OutputStream.builder()` and `Base16OutputStream.Builder`.
  org.apache.commons.codec.binary.Base16OutputStream(OutputStream, boolean, boolean, CodecPolicy)
  Use `Base16OutputStream.builder()` and `Base16OutputStream.Builder`.
  org.apache.commons.codec.binary.Base32(boolean)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(boolean, byte)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(byte)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(int)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(int, byte[])
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(int, byte[], boolean)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(int, byte[], boolean, byte)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32(int, byte[], boolean, byte, CodecPolicy)
  Use `Base32.builder()` and `Base32.Builder`.
  org.apache.commons.codec.binary.Base32InputStream(InputStream, boolean)
  Use `Base32InputStream.builder()` and `Base32InputStream.Builder`.
  org.apache.commons.codec.binary.Base32InputStream(InputStream, boolean, int, byte[])
  Use `Base32InputStream.builder()` and `Base32InputStream.Builder`.
  org.apache.commons.codec.binary.Base32InputStream(InputStream, boolean, int, byte[], CodecPolicy)
  Use `Base32InputStream.builder()` and `Base32InputStream.Builder`.
  org.apache.commons.codec.binary.Base32OutputStream(OutputStream, boolean)
  Use `Base32OutputStream.builder()` and `Base32OutputStream.Builder`.
  org.apache.commons.codec.binary.Base32OutputStream(OutputStream, boolean, int, byte[])
  Use `Base32OutputStream.builder()` and `Base32OutputStream.Builder`.
  org.apache.commons.codec.binary.Base32OutputStream(OutputStream, boolean, int, byte[], CodecPolicy)
  Use `Base32OutputStream.builder()` and `Base32OutputStream.Builder`.
  org.apache.commons.codec.binary.Base64(boolean)
  Use `Base64.builder()` and `Base64.Builder`.
  org.apache.commons.codec.binary.Base64(int)
  Use `Base64.builder()` and `Base64.Builder`.
  org.apache.commons.codec.binary.Base64(int, byte[])
  Use `Base64.builder()` and `Base64.Builder`.
  org.apache.commons.codec.binary.Base64(int, byte[], boolean)
  Use `Base64.builder()` and `Base64.Builder`.
  org.apache.commons.codec.binary.Base64(int, byte[], boolean, CodecPolicy)
  Use `Base64.builder()` and `Base64.Builder`.
  org.apache.commons.codec.binary.Base64InputStream(InputStream, boolean)
  Use `Base64InputStream.builder()` and `Base64InputStream.Builder`.
  org.apache.commons.codec.binary.Base64InputStream(InputStream, boolean, int, byte[])
  Use `Base64InputStream.builder()` and `Base64InputStream.Builder`.
  org.apache.commons.codec.binary.Base64InputStream(InputStream, boolean, int, byte[], CodecPolicy)
  Use `Base64InputStream.builder()` and `Base64InputStream.Builder`.
  org.apache.commons.codec.binary.Base64OutputStream(OutputStream, boolean)
  Use `Base64OutputStream.builder()` and `Base64OutputStream.Builder`.
  org.apache.commons.codec.binary.Base64OutputStream(OutputStream, boolean, int, byte[])
  Use `Base64OutputStream.builder()` and `Base64OutputStream.Builder`.
  org.apache.commons.codec.binary.Base64OutputStream(OutputStream, boolean, int, byte[], CodecPolicy)
  Use `Base64OutputStream.builder()` and `Base64OutputStream.Builder`.
  org.apache.commons.codec.binary.BaseNCodec(int, int, int, int)
  Use `BaseNCodec(AbstractBuilder)`.
  org.apache.commons.codec.binary.BaseNCodec(int, int, int, int, byte)
  Use `BaseNCodec(AbstractBuilder)`.
  org.apache.commons.codec.binary.BaseNCodec(int, int, int, int, byte, CodecPolicy)
  Use `BaseNCodec(AbstractBuilder)`.
  org.apache.commons.codec.binary.CharSequenceUtils()
  Will be private in the next major version.
  org.apache.commons.codec.binary.StringUtils()
  TODO Make private in 2.0.
  org.apache.commons.codec.CharEncoding()
  TODO Make private in 2.0.
  org.apache.commons.codec.Charsets()
  TODO Make private in 2.0.
  org.apache.commons.codec.digest.Crypt()
  TODO Make private in 2.0.
  org.apache.commons.codec.digest.DigestUtils()
  Since 1.11; only useful to preserve binary compatibility.
  org.apache.commons.codec.digest.HmacUtils()
  Since 1.11; only useful to preserve binary compatibility.
  org.apache.commons.codec.digest.Md5Crypt()
  TODO Make private in 2.0.
  org.apache.commons.codec.digest.Sha2Crypt()
  Will be private in the next major version.
  org.apache.commons.codec.digest.UnixCrypt()
  TODO Make private in 2.0.
  org.apache.commons.codec.Resources()
  TODO Make private in 2.0.
  org.apache.commons.codec.StringEncoderComparator()
  Creating an instance without a `StringEncoder` leads to a `NullPointerException`. Will be removed in 2.0.