| 971 | } |
| 972 | |
| 973 | private URI duplicate() { |
| 974 | URI clone = new URI(); |
| 975 | clone.absolute = absolute; |
| 976 | clone.authority = authority; |
| 977 | clone.fragment = fragment; |
| 978 | clone.host = host; |
| 979 | clone.opaque = opaque; |
| 980 | clone.path = path; |
| 981 | clone.port = port; |
| 982 | clone.query = query; |
| 983 | clone.scheme = scheme; |
| 984 | clone.schemespecificpart = schemespecificpart; |
| 985 | clone.userinfo = userinfo; |
| 986 | clone.serverAuthority = serverAuthority; |
| 987 | return clone; |
| 988 | } |
| 989 | |
| 990 | /* |
| 991 | * Takes a string that may contain hex sequences like %F1 or %2b and |