Skip to content

Commit d19a9d1

Browse files
committed
- Updated the encode() and decode() methods to be public
git-svn-id: svn://192.168.0.80/JavaXT/javaxt-core@1605 2c7b0aa6-e0b2-3c4e-bb4a-8b65b6c465ff
1 parent 0ff9ea4 commit d19a9d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/javaxt/utils/URL.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ public static LinkedHashMap<String, List<String>> parseJDBCParams(String params)
191191
//**************************************************************************
192192
//** decode
193193
//**************************************************************************
194-
private static String decode(String str){
194+
/** Used to decode a URL encoded string
195+
*/
196+
public static String decode(String str){
195197
try{
196198

197199
//Replace unencoded "%" characters with "%25". The regex finds a "%"
@@ -231,6 +233,8 @@ private static String decode(String str){
231233
//**************************************************************************
232234
//** encode
233235
//**************************************************************************
236+
/** Used to URL encode a string
237+
*/
234238
private static String encode(String str){
235239
try{
236240
if (str.contains(" ")){

0 commit comments

Comments
 (0)