Package org.apache.creadur.whisker.app
Class StreamableResource
java.lang.Object
org.apache.creadur.whisker.app.StreamableResource
- Direct Known Subclasses:
StreamableClassPathResource
,StreamableFileNameResource
,StreamableFileResource
A resource capable of being opened as a stream.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StreamableResource
public StreamableResource()
-
-
Method Details
-
open
Opens the resource as a stream.- Returns:
- open resource, not null
- Throws:
IOException
- when resource cannot be opened as a stream
-