Skip to content

Commit 95083b5

Browse files
committed
[CODEC-240] Add Percent-Encoding Codec (described in RFC3986 and RFC7578). Format.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1814514 13f79535-47bb-0310-9956-ffa450edef68
1 parent f779eec commit 95083b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/org/apache/commons/codec/net/PercentCodec.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,19 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder {
4141
/**
4242
* The escape character used by the Percent-Encoding in order to introduce an encoded character.
4343
*/
44+
4445
private final byte ESCAPE_CHAR = '%';
46+
4547
/**
4648
* The bit set used to store the character that should be always encoded
4749
*/
4850
private final BitSet alwaysEncodeChars = new BitSet();
51+
4952
/**
5053
* The flag defining if the space character should be encoded as '+'
5154
*/
5255
private final boolean plusForSpace;
56+
5357
/**
5458
* The minimum and maximum code of the bytes that is inserted in the bit set, used to prevent look-ups
5559
*/

0 commit comments

Comments
 (0)