public class FileSystemDeletableResource extends Object implements org.springframework.core.io.WritableResource, DeletableResource, IdentifiableResource
| Constructor and Description |
|---|
FileSystemDeletableResource(org.springframework.core.io.FileSystemResource resource,
FileService fileService) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
void |
delete() |
boolean |
equals(Object obj) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
Serializable |
getId() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
String |
getPath() |
URI |
getURI() |
URL |
getURL() |
int |
hashCode() |
boolean |
isOpen() |
boolean |
isReadable() |
boolean |
isWritable() |
long |
lastModified() |
void |
setId(Serializable id) |
String |
toString() |
public FileSystemDeletableResource(org.springframework.core.io.FileSystemResource resource,
FileService fileService)
public void delete()
delete in interface DeletableResourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic final String getPath()
public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionpublic boolean isWritable()
isWritable in interface org.springframework.core.io.WritableResourcepublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface org.springframework.core.io.WritableResourceIOExceptionpublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile()
getFile in interface org.springframework.core.io.Resourcepublic long contentLength()
throws IOException
contentLength in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath)
createRelative in interface org.springframework.core.io.Resourcepublic String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic Serializable getId()
getId in interface IdentifiableResourcepublic void setId(Serializable id)
setId in interface IdentifiableResourceCopyright © 2022 Paul Warren. All rights reserved.