# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Classes
  Class and Description
  org.apache.commons.codec.language.Caverphone 1.5 Replaced by `Caverphone2`, will be removed in 2.0.

- Deprecated Fields
  Field and Description
  org.apache.commons.codec.net.URLCodec.charset TODO: This field will be changed to a private final Charset in 2.0.
  org.apache.commons.codec.Charsets.ISO_8859_1 Use Java 7's `StandardCharsets`
  org.apache.commons.codec.binary.BaseNCodec.PAD Use `BaseNCodec.pad`. Will be removed in 2.0.
  org.apache.commons.codec.Charsets.US_ASCII Use Java 7's `StandardCharsets`
  org.apache.commons.codec.Charsets.UTF_16 Use Java 7's `StandardCharsets`
  org.apache.commons.codec.Charsets.UTF_16BE Use Java 7's `StandardCharsets`
  org.apache.commons.codec.Charsets.UTF_16LE Use Java 7's `StandardCharsets`
  org.apache.commons.codec.Charsets.UTF_8 Use Java 7's `StandardCharsets`

- Deprecated Methods
  Method and Description
  org.apache.commons.codec.net.URLCodec.getEncoding() Use `URLCodec.getDefaultCharset()`, will be removed in 2.0.
  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.digest.DigestUtils.getShaDigest() Use `DigestUtils.getSha1Digest()`
  org.apache.commons.codec.binary.Base64.isArrayByteBase64(byte[]) 1.5 Use `Base64.isBase64(byte[])`, will be removed in 2.0.
  org.apache.commons.codec.language.bm.Rule.Phoneme.join(Rule.Phoneme) since 1.9
  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.digest.DigestUtils.sha(byte[]) Use `DigestUtils.sha1(byte[])`
  org.apache.commons.codec.digest.DigestUtils.sha(InputStream) Use `DigestUtils.sha1(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.sha(String) Use `DigestUtils.sha1(String)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(byte[]) Use `DigestUtils.sha1Hex(byte[])`
  org.apache.commons.codec.digest.DigestUtils.shaHex(InputStream) Use `DigestUtils.sha1Hex(InputStream)`
  org.apache.commons.codec.digest.DigestUtils.shaHex(String) Use `DigestUtils.sha1Hex(String)`

- Deprecated Constructors
  Constructor and Description
  org.apache.commons.codec.StringEncoderComparator() Creating an instance without a `StringEncoder` leads to a `NullPointerException`. Will be removed in 2.0.

Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.