public class BlobStorageResource
extends org.springframework.core.io.AbstractResource
implements org.springframework.core.io.WritableResource
WritableResource for reading and writing objects in Azure
StorageAccount blob. An instance of this class represents a handle to a blob.| Constructor and Description |
|---|
BlobStorageResource(com.microsoft.azure.storage.blob.CloudBlobClient blobClient,
String location) |
BlobStorageResource(com.microsoft.azure.storage.blob.CloudBlobClient blobClient,
String location,
boolean autoCreateFiles) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
URI |
getURI() |
URL |
getURL() |
long |
lastModified() |
equals, getFileForLastModifiedCheck, hashCode, isFile, isOpen, isReadable, readableChannel, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic BlobStorageResource(com.microsoft.azure.storage.blob.CloudBlobClient blobClient,
String location)
public BlobStorageResource(com.microsoft.azure.storage.blob.CloudBlobClient blobClient,
String location,
boolean autoCreateFiles)
public OutputStream getOutputStream() throws IOException
getOutputStream in interface org.springframework.core.io.WritableResourceIOExceptionpublic boolean exists()
exists in interface org.springframework.core.io.Resourceexists in class org.springframework.core.io.AbstractResourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourcegetURL in class org.springframework.core.io.AbstractResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourcegetURI in class org.springframework.core.io.AbstractResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourcegetFile in class org.springframework.core.io.AbstractResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface org.springframework.core.io.ResourcecontentLength in class org.springframework.core.io.AbstractResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourcelastModified in class org.springframework.core.io.AbstractResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourcecreateRelative in class org.springframework.core.io.AbstractResourceIOExceptionpublic String getFilename()
getFilename in interface org.springframework.core.io.ResourcegetFilename in class org.springframework.core.io.AbstractResourcepublic String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.