Class FileSystemDeletableResource
java.lang.Object
internal.org.springframework.content.fs.io.FileSystemDeletableResource
- All Implemented Interfaces:
DeletableResource,IdentifiableResource,org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource,org.springframework.core.io.WritableResource
public class FileSystemDeletableResource
extends Object
implements org.springframework.core.io.WritableResource, DeletableResource, IdentifiableResource
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemDeletableResource(org.springframework.core.io.FileSystemResource resource, FileService fileService) -
Method Summary
Modifier and TypeMethodDescriptionlongorg.springframework.core.io.ResourcecreateRelative(String relativePath) voiddelete()booleanbooleanexists()getFile()getId()final StringgetPath()getURI()getURL()inthashCode()booleanisOpen()booleanbooleanlongvoidsetId(Serializable id) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, isFile, readableChannelMethods inherited from interface org.springframework.core.io.WritableResource
writableChannel
-
Constructor Details
-
FileSystemDeletableResource
public FileSystemDeletableResource(org.springframework.core.io.FileSystemResource resource, FileService fileService)
-
-
Method Details
-
delete
public void delete()- Specified by:
deletein interfaceDeletableResource
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.springframework.core.io.Resource
-
getPath
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.core.io.Resource
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfaceorg.springframework.core.io.Resource
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceorg.springframework.core.io.WritableResource
-
lastModified
- Specified by:
lastModifiedin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceorg.springframework.core.io.WritableResource- Throws:
IOException
-
getURL
- Specified by:
getURLin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceorg.springframework.core.io.Resource
-
contentLength
- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
createRelative
- Specified by:
createRelativein interfaceorg.springframework.core.io.Resource
-
toString
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
equals
-
hashCode
public int hashCode() -
getId
- Specified by:
getIdin interfaceIdentifiableResource
-
setId
- Specified by:
setIdin interfaceIdentifiableResource
-