# 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.

- 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–2013 The Apache Software Foundation. All rights reserved.