Package cn.sparrow.common.service
Class StorageServiceImpl
java.lang.Object
cn.sparrow.common.service.StorageServiceImpl
- All Implemented Interfaces:
StorageService
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionvoid
byte[]
getFileByte(String filename)
void
init()
loadAll()
org.springframework.core.io.Resource
loadAsResource(String filename)
void
store(InputStream file, String fileName)
void
store(org.springframework.web.multipart.MultipartFile file)
void
Constructor Details
StorageServiceImpl
public StorageServiceImpl()
Method Details
store
public void store (org.springframework.web.multipart.MultipartFile file)- Specified by:
store
in interfaceStorageService
loadAll
- Specified by:
loadAll
in interfaceStorageService
load
- Specified by:
load
in interfaceStorageService
getFileByte
loadAsResource
- Specified by:
loadAsResource
in interfaceStorageService
deleteAll
public void deleteAll()- Specified by:
deleteAll
in interfaceStorageService
init
public void init()- Specified by:
init
in interfaceStorageService
store
- Specified by:
store
in interfaceStorageService
store
- Specified by:
store
in interfaceStorageService