(String s)
| 279 | } |
| 280 | |
| 281 | private static String encode(String s) { |
| 282 | try { |
| 283 | // TODO: Use URLEncoder.encode(String, Charset) when available |
| 284 | return URLEncoder.encode(s, UTF_8); |
| 285 | } catch (UnsupportedEncodingException impossible) { |
| 286 | throw new AssertionError("UTF-8 is not supported", impossible); |
| 287 | } |
| 288 | } |
| 289 | } |
no outgoing calls