public interface ResourceProvider
ModelMapperSerializer
.Modifier and Type | Method and Description |
---|---|
void |
clear()
Delete all files in the filesystem at the location described in
targetOut(String) |
boolean |
contains(String fileName)
Whether or not the filesystem contains the file at the destination described in
targetOut(String) |
boolean |
resourceAvailable(String fileName)
Whether or not the classpath contains the resource at the destination described in
targetIn(String) |
InputStream |
targetIn(String fileName)
For the filename, provide an InputStream from which to read the file.
|
OutputStream |
targetOut(String fileName)
For the filename, provide a OutputStream to write the file to.
|
OutputStream targetOut(String fileName)
resources/cache
directory of the current application.fileName
- The name of the file to writeInputStream targetIn(String fileName)
resources/cache
.fileName
- The name of the resource to fetchboolean contains(String fileName)
targetOut(String)
fileName
- The name of the file to checkboolean resourceAvailable(String fileName)
targetIn(String)
fileName
- The name of the resource to checkvoid clear()
targetOut(String)
Copyright © 2021. All rights reserved.