microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java
public static String getBlobNameFromURI(final URI inURI, final boolean usePathStyleUris) throws URISyntaxException {
        return Utility.safeRelativize(new URI(getContainerURI(new StorageUri(inURI), usePathStyleUris).getPrimaryUri()
                .toString().concat("/")), inURI);
    }
public static String getBlobNameFromURI(final URI inURI, final boolean usePathStyleUris) throws URISyntaxException {
        return Utility.safeRelativize(new URI(getContainerURI(new StorageUri(inURI), usePathStyleUris).getPrimaryUri()
                .toString().concat("/")), inURI);
    }
Gets the blob name from the URI.

@param inURI
the resource address
@param usePathStyleUris
a value indicating if the address is a path style uri.
@return the blobs name
@throws URISyntaxException