Lines Matching defs:pString
219 * @param pString string to convert to a URL safe form
220 * @param charset the charset for pString
225 public String encode(String pString, String charset)
228 if (pString == null) {
231 return new String(encode(pString.getBytes(charset)), StringEncodings.US_ASCII);
239 * @param pString string to convert to a URL safe form
245 public String encode(String pString) throws EncoderException {
246 if (pString == null) {
250 return encode(pString, getDefaultCharset());
262 * @param pString URL safe string to convert into its original form
269 public String decode(String pString, String charset)
272 if (pString == null) {
275 return new String(decode(pString.getBytes(StringEncodings.US_ASCII)), charset);
284 * @param pString URL safe string to convert into its original form
290 public String decode(String pString) throws DecoderException {
291 if (pString == null) {
295 return decode(pString, getDefaultCharset());