public class LaxURLCodec
extends org.apache.commons.codec.net.URLCodec
| Modifier and Type | Field and Description |
|---|---|
static LaxURLCodec |
DEFAULT |
static java.util.BitSet |
EXPANDED_URI_SAFE
A more expansive set of ASCII URI characters to consider as 'safe' to
leave unencoded, based on actual browser behavior.
|
static java.util.BitSet |
QUERY_SAFE |
| Constructor and Description |
|---|
LaxURLCodec(java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeUrlLoose(byte[] bytes)
Decodes an array of URL safe 7-bit characters into an array of
original bytes.
|
java.lang.String |
encode(java.util.BitSet safe,
java.lang.String pString,
java.lang.String cs)
Encodes a string into its URL safe form using the specified
string charset.
|
public static LaxURLCodec DEFAULT
public static java.util.BitSet EXPANDED_URI_SAFE
public static java.util.BitSet QUERY_SAFE
public static final byte[] decodeUrlLoose(byte[] bytes)
bytes - array of URL safe characterspublic java.lang.String encode(java.util.BitSet safe,
java.lang.String pString,
java.lang.String cs)
throws java.io.UnsupportedEncodingException
safe - BitSet of characters that don't need to be encodedpString - String to encodecs - Name of character set to usepString.java.io.UnsupportedEncodingExceptionCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.