public class URLCoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
digits |
Constructor and Description |
---|
URLCoder() |
Modifier and Type | Method and Description |
---|---|
private static void |
convert(java.lang.String s,
java.lang.StringBuffer buf) |
static java.lang.String |
decode(java.lang.String a_strURL)
Decodes a URL to a unicode.
|
static java.lang.String |
encode(java.lang.String s)
Translates a string into
application/x-www-form-urlencoded
using UTF-8 encoding |
static final java.lang.String digits
public static java.lang.String decode(java.lang.String a_strURL)
a_strURL
- a URL in UTF-8-encodingpublic static java.lang.String encode(java.lang.String s) throws java.io.UnsupportedEncodingException
application/x-www-form-urlencoded
using UTF-8 encodingin
- String to be encodedjava.io.UnsupportedEncodingException
private static void convert(java.lang.String s, java.lang.StringBuffer buf) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
Copyright © 2023. All rights reserved.