public class LocalFileResource extends InputStreamResource
Constructor and Description |
---|
LocalFileResource(String filePath)
Constructs a TextResource that reads out the content of a file on the local file system
|
Modifier and Type | Method and Description |
---|---|
InputStream |
resourceStream()
Files ion the local file system are easily accessed as InputStreams
|
resourceText
public LocalFileResource(String filePath)
filePath
- the file system path of the filepublic InputStream resourceStream() throws IOException
resourceStream
in class InputStreamResource
IOException
- if the InputStream can not be constructedCopyright © 2016. All rights reserved.