public class ResourceFolderResource extends InputStreamResource
Constructor and Description |
---|
ResourceFolderResource(String resourcePath)
Constructs a TextResource that reads out the content of a file in the resources folder of a jar
|
Modifier and Type | Method and Description |
---|---|
InputStream |
resourceStream()
Files in the resource folder are easily accessed as InputStreams
|
resourceText
public ResourceFolderResource(String resourcePath)
resourcePath
- the full path of the resource folder file, ie '/foo/bar/file.dat'public InputStream resourceStream()
resourceStream
in class InputStreamResource
Copyright © 2016. All rights reserved.