microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java
public static URI stripSingleURIQueryAndFragment(final URI inUri) throws StorageException {
        if (inUri == null) {
            return null;
        }
        try {
            return new URI(inUri.getScheme(), inUri.getAuthority(), inUri.getPath(), null, null);
        }
        catch (final URISyntaxException e) {
            throw Utility.generateNewUnexpectedStorageException(e);
        }
    }
public static URI stripSingleURIQueryAndFragment(final URI inUri) throws StorageException {
        if (inUri == null) {
            return null;
        }
        try {
            return new URI(inUri.getScheme(), inUri.getAuthority(), inUri.getPath(), null, null);
        }
        catch (final URISyntaxException e) {
            throw Utility.generateNewUnexpectedStorageException(e);
        }
    }
public static URI stripSingleURIQueryAndFragment ( final URI inUri ) throws StorageException { if ( inUri == null ) { return null ; } try { return new URI ( inUri . getScheme ( ) , inUri . getAuthority ( ) , inUri . getPath ( ) , null , null ) ; } catch ( final URISyntaxException e ) { throw Utility . generateNewUnexpectedStorageException ( e ) ; } }
Strips the Query and Fragment from the uri.

@param inUri
the uri to alter
@return the stripped uri.
@throws StorageException
Strips the Query and Fragment from the uri .