public class LaxURLCodec
extends org.apache.commons.codec.net.URLCodec
| Modifier and Type | Field and Description |
|---|---|
static LaxURLCodec |
DEFAULT |
static 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 BitSet |
QUERY_SAFE |
| Constructor and Description |
|---|
LaxURLCodec(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.
|
String |
encode(BitSet safe,
String pString,
String cs)
Encodes a string into its URL safe form using the specified
string charset.
|
public static LaxURLCodec DEFAULT
public static BitSet EXPANDED_URI_SAFE
public static BitSet QUERY_SAFE
public LaxURLCodec(String encoding)
public static final byte[] decodeUrlLoose(byte[] bytes)
bytes - array of URL safe characterspublic String encode(BitSet safe, String pString, String cs) throws UnsupportedEncodingException
safe - BitSet of characters that don't need to be encodedpString - String to encodecs - Name of character set to usepString.UnsupportedEncodingExceptionCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.