Creates a URI from the given authority. Note: Not part of the public API. @param authority the authority component. @return the URI. @throws URIException if an error occurred while parsing the authority.
(String authority)
| 2197 | * @throws URIException if an error occurred while parsing the authority. |
| 2198 | */ |
| 2199 | public static URI fromAuthority(String authority) throws URIException { |
| 2200 | URI uri = new URI(); |
| 2201 | uri.parseAuthority(authority, true); |
| 2202 | uri.setURI(); |
| 2203 | uri._uri = authority.toCharArray(); |
| 2204 | return uri; |
| 2205 | } |
| 2206 | |
| 2207 | /** |
| 2208 | * Parse the authority component. |