public class FileStorageResource
extends org.springframework.core.io.AbstractResource
WritableResource for reading and writing objects in Azure
StorageAccount file. An instance of this class represents a handle to a file.| Constructor and Description |
|---|
FileStorageResource(com.azure.storage.file.share.ShareServiceClient shareServiceClient,
String location) |
| 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() |
URL |
getURL() |
long |
lastModified() |
equals, getFileForLastModifiedCheck, getURI, hashCode, isFile, isOpen, isReadable, readableChannel, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic FileStorageResource(com.azure.storage.file.share.ShareServiceClient shareServiceClient,
String location)
public OutputStream getOutputStream() throws IOException
IOExceptionpublic 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 File getFile()
getFile in interface org.springframework.core.io.ResourcegetFile in class org.springframework.core.io.AbstractResourcepublic long contentLength()
contentLength in interface org.springframework.core.io.ResourcecontentLength in class org.springframework.core.io.AbstractResourcepublic long lastModified()
lastModified in interface org.springframework.core.io.ResourcelastModified in class org.springframework.core.io.AbstractResourcepublic org.springframework.core.io.Resource createRelative(String relativePath)
createRelative in interface org.springframework.core.io.ResourcecreateRelative in class org.springframework.core.io.AbstractResourcepublic String getFilename()
getFilename in interface org.springframework.core.io.ResourcegetFilename in class org.springframework.core.io.AbstractResourcepublic String getDescription()
public InputStream getInputStream() throws IOException
IOExceptionCopyright © 2021 Microsoft Corporation. All rights reserved.