@return the uri as a string with parts encoded.
()
| 765 | * @return the uri as a string with parts encoded. |
| 766 | */ |
| 767 | public String toASCIIString() { |
| 768 | StringBuffer buffer = new StringBuffer(); |
| 769 | if (scheme != null) { |
| 770 | buffer.append(scheme + SCHEME_SEPARATOR); |
| 771 | } |
| 772 | buffer.append(getRawSchemeSpecificPart()); |
| 773 | if (fragment != null) { |
| 774 | buffer.append(FRAGMENT_SEPARATOR + getRawFragment()); |
| 775 | } |
| 776 | return buffer.toString(); |
| 777 | } |
| 778 | |
| 779 | /** |
| 780 | * Create a relative URI object against this URI, given the uri parameter. |
no test coverage detected