Searched refs:URLEncoder (Results 1 – 16 of 16) sorted by relevance
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URLEncoderTest.java | 22 import java.net.URLEncoder; 39 URLEncoder.encode(URL)).equals(URL)); in test_encodeLjava_lang_String() 41 URLEncoder.encode(URL2)).equals(URL2)); in test_encodeLjava_lang_String() 43 URLEncoder.encode(URL3)).equals(URL3)); in test_encodeLjava_lang_String() 53 URLEncoder.encode("str", "unknown_enc"); in test_encodeLjava_lang_StringLjava_lang_String() 62 URLEncoder.encode(null, "harmony"); in test_encodeLjava_lang_StringLjava_lang_String() 70 assertEquals("%82%A0", URLEncoder.encode("あ", "Shift_JIS")); in test11571917() 71 assertEquals("%82%A9", URLEncoder.encode("か", "Shift_JIS")); in test11571917() 72 assertEquals("%97%43", URLEncoder.encode("佑", "Shift_JIS")); in test11571917() 73 assertEquals("%24", URLEncoder.encode("$", "Shift_JIS")); in test11571917() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | UrlEncodingTest.java | 23 import java.net.URLEncoder; 44 assertEquals("a%2Bb", URLEncoder.encode("a+b")); in testEncodingPlus() 45 assertEquals("a%2Bb", URLEncoder.encode("a+b", "UTF-8")); in testEncodingPlus() 60 assertEquals("a+b", URLEncoder.encode("a b")); in testEncodingSpace() 61 assertEquals("a+b", URLEncoder.encode("a b", "UTF-8")); in testEncodingSpace() 127 URLEncoder.encode("ab", (String) null); in testUrlEncoderFailsOnNullCharset() 136 URLEncoder.encode("ab", ""); in testUrlEncoderFailsOnEmptyCharset() 157 URLEncoder.encode("ab", "no-such-charset"); in testUrlEncoderFailsOnInvalidCharset() 213 assertEquals("%00", URLEncoder.encode("\u0000", "UTF-8")); in testUrlEncoderEncodesNonPrintableNonAsciiCharacters() 214 assertEquals("%00", URLEncoder.encode("\u0000")); in testUrlEncoderEncodesNonPrintableNonAsciiCharacters() [all …]
|
/libcore/ojluni/src/test/java/net/URLEncoder/ |
D | URLEncoderEncodeArgs.java | 29 package test.java.net.URLEncoder; 31 import java.net.URLEncoder; 41 String s1 = URLEncoder.encode ("Hello World", (String) null); in testEncodeNull() 50 String s2 = URLEncoder.encode ("Hello World", ""); in testEncodeEmpty()
|
D | EncodingTest.java | 23 package test.java.net.URLEncoder; 26 import java.net.URLEncoder; 76 String encoded1 = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in encode() 77 String encoded2 = URLEncoder.encode(s, StandardCharsets.UTF_8); in encode()
|
D | URLEncodeDecode.java | 31 package test.java.net.URLEncoder; 58 encoded = URLEncoder.encode(str); in testURLEncodeDecode() 61 encoded = URLEncoder.encode(str, enc); in testURLEncodeDecode()
|
D | Decoder.java | 29 package test.java.net.URLEncoder; 54 String encoded = URLEncoder.encode(strings[i], enc); in testDecoder()
|
D | SurrogatePairs.java | 31 package test.java.net.URLEncoder; 79 String encoded = URLEncoder.encode(str, "UTF-8"); in test()
|
D | DecodeNonEncoded.java | 33 package test.java.net.URLEncoder;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLDecoderTest.java | 22 import java.net.URLEncoder; 45 URLEncoder.encode(URL)).equals(URL)); in test_decodeLjava_lang_String() 47 URLEncoder.encode(URL2)).equals(URL2)); in test_decodeLjava_lang_String() 49 URLEncoder.encode(URL3)).equals(URL3)); in test_decodeLjava_lang_String()
|
/libcore/ojluni/src/test/java/net/URLDecoder/ |
D | EncodingTest.java | 26 import java.net.URLEncoder; 88 String encoded = URLEncoder.encode("http://www.xyz.com/find?key=\u0100\u0101", in testIllegalArgument() 109 String encoded = URLEncoder.encode(s, StandardCharsets.UTF_8.name()); in decode()
|
D | EncodeDecode.java | 40 String encStr = URLEncoder.encode(str); in testEncodeDecode()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLEncoder.java | 76 public class URLEncoder { class 143 private URLEncoder() { } in URLEncoder() method in URLEncoder
|
D | URLDecoder.java | 86 static String dfltEncName = URLEncoder.dfltEncName;
|
/libcore/ |
D | openjdk_java_files.bp | 358 "ojluni/src/main/java/java/net/URLEncoder.java",
|
D | EXPECTED_UPSTREAM | 391 ojluni/src/main/java/java/net/URLEncoder.java,jdk11u/jdk-11.0.13-ga,src/java.base/share/classes/jav…
|
/libcore/api/ |
D | current.txt | 6233 public class URLEncoder {
|