Returns a string representation of this object.
Source
String toString() {
StringBuffer sb = new StringBuffer();
_addIfNonEmpty(sb, scheme, scheme, ':');
if (hasAuthority || path.startsWith("//") || (scheme == "file")) {
// File URIS always have the authority, even if it is empty.
// The empty URI means "localhost".
sb.write("//");
_writeAuthority(sb);
}
sb.write(path);
if (_query != null) { sb..write("?")..write(_query); }
if (_fragment != null) { sb..write("#")..write(_fragment); }
return sb.toString();
}