OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:responseCharset
(Results
1 - 2
of
2
) sorted by null
/libcore/luni/src/test/java/libcore/net/http/
ResponseUtilsTest.java
22
import static libcore.net.http.ResponseUtils.
responseCharset
;
26
assertEquals(StandardCharsets.UTF_8,
responseCharset
(null));
27
assertEquals(StandardCharsets.UTF_8,
responseCharset
("text/plain"));
28
assertEquals(StandardCharsets.UTF_8,
responseCharset
("text/plain;foo=bar;baz=bal"));
29
assertEquals(StandardCharsets.UTF_8,
responseCharset
("text/plain;charset="));
34
responseCharset
("text/plain;charset=ISO-8859-1"));
36
responseCharset
("text/plain;CHARSET=ISO-8859-1"));
38
responseCharset
("text/plain; charset = ISO-8859-1"));
40
responseCharset
("text/plain; foo=bar;baz=bag;charset=ISO-8859-1"));
42
responseCharset
("text/plain;charset=ISO-8859-1;;==,=="))
[
all
...]
/libcore/luni/src/main/java/libcore/net/http/
ResponseUtils.java
40
public static Charset
responseCharset
(String contentTypeHeader)
42
Charset
responseCharset
= StandardCharsets.UTF_8;
47
responseCharset
= Charset.forName(charsetParameter);
51
return
responseCharset
;
Completed in 543 milliseconds