Class StreamProvider

    • Method Detail

      • get

        public InputStream get()
        Description copied from interface: StreamProviderBase
        Returns a InputStream for 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 the contentType() method to get the mime type of the content delivered via the InputStream.
        Specified by:
        get in interface StreamProviderBase
        Returns:
        InputStream for the requested content that must be closed after use
      • contentType

        public String contentType()
        Returns the HTTP ContentType for the content delivered by get() method.
        Returns:
        HTTP ContentType value