Class InputStreamContent

    • Constructor Detail

      • InputStreamContent

        public InputStreamContent​(InputStream stream,
                                  String mimetype,
                                  String encoding)
        Constructor
        Parameters:
        stream - content input stream
        mimetype - content mimetype
    • Method Detail

      • getInputStream

        public InputStream getInputStream()
        Description copied from interface: Content
        Gets the content input stream
        Specified by:
        getInputStream in interface Content
        Returns:
        input stream
      • getSize

        public long getSize()
        Description copied from interface: Content
        Gets the content length (in bytes)
        Specified by:
        getSize in interface Content
        Returns:
        length
      • getMimetype

        public String getMimetype()
        Description copied from interface: Content
        Gets the content mimetype
        Specified by:
        getMimetype in interface Content
        Returns:
        mimetype
      • getEncoding

        public String getEncoding()
        Description copied from interface: Content
        Gets the content encoding
        Specified by:
        getEncoding in interface Content
        Returns:
        encoding