Class StreamableFileResource
java.lang.Object
org.apache.creadur.whisker.app.StreamableResource
org.apache.creadur.whisker.app.load.StreamableFileResource
Streams the contents of a file.
-
Constructor Summary
ConstructorDescriptionStreamableFileResource
(File file) Constructs an object that streams the file on demand. -
Method Summary
-
Constructor Details
-
StreamableFileResource
Constructs an object that streams the file on demand.- Parameters:
file
- not null
-
-
Method Details
-
open
Opens the file as an input stream.- Specified by:
open
in classStreamableResource
- Returns:
- not null
- Throws:
IOException
- when resource cannot be opened- See Also:
-
toString
A description suitable for diagnostics.
-