microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java
public static URI addToQuery(final URI resourceURI, final String queryString) throws URISyntaxException,
            StorageException {
        return addToSingleUriQuery(resourceURI, parseQueryString(queryString));
    }
public static URI addToQuery(final URI resourceURI, final String queryString) throws URISyntaxException,
            StorageException {
        return addToSingleUriQuery(resourceURI, parseQueryString(queryString));
    }
Adds a queryString to an URI.

@param resourceURI
the URI of the resource
@param queryString
the query string to add
@return an appended URI.
@throws URISyntaxException
if the resulting URI is invalid.
@throws StorageException