Skip to content

Commit 69ba122

Browse files
author
geremy
committed
Merge branch 'CL-4486813697318'
2 parents 3fa04c8 + e1f70f4 commit 69ba122

11 files changed

Lines changed: 166 additions & 184 deletions

File tree

‎android/3.4/Pubnub-Android-3.4.jar‎

232 Bytes
Binary file not shown.
232 Bytes
Binary file not shown.
232 Bytes
Binary file not shown.

‎java/3.3/test/PubnubExample.jar‎

0 Bytes
Binary file not shown.

‎java/3.3/test/PubnubUnitTest.jar‎

0 Bytes
Binary file not shown.
232 Bytes
Binary file not shown.
232 Bytes
Binary file not shown.

‎java/3.4/jars/PubnubExample.jar‎

232 Bytes
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.pubnub.api;
2+
3+
import java.io.ByteArrayOutputStream;
4+
import java.io.IOException;
5+
import java.io.OutputStreamWriter;
6+
import java.io.UnsupportedEncodingException;
7+
import java.net.URLEncoder;
8+
9+
public class PubnubUtil extends PubnubUtilCore {
10+
11+
/**
12+
* Returns encoded String
13+
*
14+
* @param sUrl
15+
* , input string
16+
* @return , encoded string
17+
*/
18+
public static String urlEncode(String sUrl) {
19+
try {
20+
return URLEncoder.encode(sUrl, "UTF-8").replace("+", "%20");
21+
} catch (UnsupportedEncodingException e) {
22+
return null;
23+
}
24+
}
25+
}

‎java/3.4/srcPubnubApi/com/pubnub/api/PubnubUtil.java‎

Lines changed: 0 additions & 184 deletions
This file was deleted.

0 commit comments

Comments
 (0)