commit | 3c212236e30fce82ed34f1eba0f667054face92b | [log] [tgz] |
---|---|---|
author | Alex Herbert <aherbert@apache.org> | Tue Jan 28 15:09:21 2020 +0000 |
committer | Gary Gregory <garydgregory@users.noreply.github.com> | Tue Jan 28 10:09:21 2020 -0500 |
tree | a49de701df1ec5f36e0af5a54450209c24f2f0dd | |
parent | f5a61f0cd029f18666163f414f848ba0e1b39976 [diff] |
[CODEC-280] Added strict decoding property to BaseNCodec. (#35) * [CODEC-280] Added strict decoding property to BaseNCodec. The default is lenient encoding. Any trailing bits that cannot be interpreted as part of the encoding are discarded. Combinations of trailing characters that cannot be created by a valid encoding are partially interpreted. If set to strict encoding the codec will raise an exception when trailing bits are present that are not part of a valid encoding. Added tests to show that in lenient mode re-encoding will create a different byte array. In strict mode the re-encoding should create the same byte array as the original (with appropriate pad characters on the input). * [CODEC-280] Added strict decoding property to BCodec. * [CODEC-280] Removed unused import @Ignore from BCodecTest
The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.
More information can be found on the Apache Commons Codec homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons Codec should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories:
<dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.14</version> </dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn clean test
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is under the Apache Licence v2.
See the NOTICE.txt
file for required notices and attributions.
You like Apache Commons Codec? Then donate back to the ASF to support the development.
#apache-commons
IRC channel on irc.freenode.org