public class CompleteURLEncoder extends Object
The url strings passed in are converted into Java URI objects as it automatically does the encoding. Note we cannot simply use Java's URLEncoder as it is only for HTML form encoding and does not cater for the entire url.
Modifier and Type | Field and Description |
---|---|
static String |
FILE_PROTOCOL |
Constructor and Description |
---|
CompleteURLEncoder() |
public static final String FILE_PROTOCOL
public static String encode(String urlString, String enc) throws MalformedURLException, UnsupportedEncodingException
Copyright © 2003–2021 Atlassian. All rights reserved.