Set the fragment. @param fragment the fragment string. @throws URIException If an error occurs.
(String fragment)
| 3392 | * @throws URIException If an error occurs. |
| 3393 | */ |
| 3394 | public void setFragment(String fragment) throws URIException { |
| 3395 | if (fragment == null || fragment.length() == 0) { |
| 3396 | _fragment = (fragment == null) ? null : fragment.toCharArray(); |
| 3397 | hash = 0; |
| 3398 | return; |
| 3399 | } |
| 3400 | _fragment = encode(fragment, allowed_fragment, getProtocolCharset()); |
| 3401 | hash = 0; |
| 3402 | } |
| 3403 | |
| 3404 | |
| 3405 | /** |
nothing calls this directly
no test coverage detected