public final class FileResource extends Object implements Resource
| Constructor and Description |
|---|
FileResource(File file)
Constructs new
FileResource. |
FileResource(String path)
Constructs new
FileResource. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns new
InputStream for this Resource. |
String |
getPath()
Returns resource file path.
|
public FileResource(@NotNull File file)
FileResource.file - resource Filepublic FileResource(@NotNull String path)
FileResource.path - resource file path@NotNull public InputStream getInputStream()
ResourceInputStream for this Resource.getInputStream in interface ResourceInputStream for this ResourceCopyright © 2020. All rights reserved.