public class FileResource extends Object implements InputResource
Constructor and Description |
---|
FileResource(File aFile)
Constructs the resource.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Gets the input stream to the resource.
|
public FileResource(File aFile)
aFile
- File to read.public InputStream getInputStream() throws IOException
InputResource
getInputStream
in interface InputResource
IOException
- in case the resource cannot be found.Copyright © 2024. All rights reserved.