microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java
public static StorageUri getShareURI(final StorageUri fileAddress, final boolean usePathStyleUris)
            throws URISyntaxException {
        final String shareName = getShareNameFromUri(fileAddress.getPrimaryUri(), usePathStyleUris);

        final StorageUri shareUri = appendPathToUri(getServiceClientBaseAddress(fileAddress, usePathStyleUris),
                shareName);
        return shareUri;
    }
public static StorageUri getShareURI(final StorageUri fileAddress, final boolean usePathStyleUris)
            throws URISyntaxException {
        final String shareName = getShareNameFromUri(fileAddress.getPrimaryUri(), usePathStyleUris);

        final StorageUri shareUri = appendPathToUri(getServiceClientBaseAddress(fileAddress, usePathStyleUris),
                shareName);
        return shareUri;
    }
public static StorageUri getShareURI ( final StorageUri fileAddress , final boolean usePathStyleUris ) throws URISyntaxException { final String shareName = getShareNameFromUri ( fileAddress . getPrimaryUri ( ) , usePathStyleUris ) ; final StorageUri shareUri = appendPathToUri ( getServiceClientBaseAddress ( fileAddress , usePathStyleUris ) , shareName ) ; return shareUri ; }
Gets the share URI from a file address

@param fileAddress
the file address
@param usePathStyleUris
a value indicating if the address is a path style uri.
@return the share URI from a file address
@throws URISyntaxException
Gets the share URI from a file address