Class PathContent

    • Constructor Summary

      Constructors 
      Constructor Description
      PathContent​(java.nio.file.Path path, java.lang.String contentType)  
    • Constructor Detail

      • PathContent

        public PathContent​(java.nio.file.Path path,
                           java.lang.String contentType)
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
      • getContentDisposition

        public java.lang.String getContentDisposition()
      • write

        public void write​(java.io.OutputStream outputStream)
                   throws java.io.IOException
        Specified by:
        write in interface Content
        Throws:
        java.io.IOException
      • release

        public void release()
        Specified by:
        release in interface Content