Interface StreamProviderBase
-
- All Known Implementing Classes:
ActionRequestReturningStream,FunctionRequestReturningStream,StreamProvider
public interface StreamProviderBase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputStreamget()Returns aInputStreamfor the requested content every time this method is called.default byte[]getBytes()default StringgetStringUtf8()
-
-
-
Method Detail
-
get
InputStream get()
Returns aInputStreamfor the requested content every time this method is called. Note that the returned `InputStream` must be closed after read otherwise the http client may hang on a later request. Use theStreamProvider.contentType()method to get the mime type of the content delivered via the InputStream.- Returns:
- InputStream for the requested content that must be closed after use
-
getBytes
default byte[] getBytes()
-
getStringUtf8
default String getStringUtf8()
-
-