Class StreamAsset


  • public class StreamAsset
    extends Object
    This class encapsulates input stream and the media type of Asset.
    • Constructor Detail

      • StreamAsset

        public StreamAsset​(InputStream inputStream,
                           String mimeType)
        Constructs an instance of StreamAsset.
        Parameters:
        inputStream - input stream of the asset; can not be null.
        mimeType - mime type of the input stream; can not be null or empty.
    • Method Detail

      • getInputStream

        public InputStream getInputStream()
        Returns the input stream of the asset.
        Returns:
        Input Stream of the asset.
      • getMimeType

        public String getMimeType()
        Returns the mime type of the asset.
        Returns:
        Mime Type of the asset.