Class StreamableResource

java.lang.Object
org.apache.creadur.whisker.app.StreamableResource
Direct Known Subclasses:
StreamableClassPathResource, StreamableFileNameResource, StreamableFileResource

public abstract class StreamableResource extends Object
A resource capable of being opened as a stream.
  • Constructor Details

    • StreamableResource

      public StreamableResource()
  • Method Details

    • open

      public abstract InputStream open() throws IOException
      Opens the resource as a stream.
      Returns:
      open resource, not null
      Throws:
      IOException - when resource cannot be opened as a stream