Lines Matching refs:parse
38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8");
43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8")));
45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode());
88 MediaType mediaType = MediaType.parse(
95 MediaType mediaType = MediaType.parse("text/plain;a=1;b=2;charset=utf-8;c=3");
102 MediaType mediaType = MediaType.parse(
109 MediaType.parse("text/plain; charset=utf-8; charset=utf-16");
116 MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\"");
125 MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf");
134 MediaType noCharset = MediaType.parse("text/plain");
138 MediaType charset = MediaType.parse("text/plain; charset=iso-8859-1");
144 MediaType mediaType = MediaType.parse(string);
149 assertNull(string, MediaType.parse(string));