Class DefaultContentResult

  • All Implemented Interfaces:
    ContentResult, java.io.Closeable, java.lang.AutoCloseable

    public class DefaultContentResult
    extends java.lang.Object
    implements ContentResult
    Default implementation of ContentResult.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultContentResult​(java.lang.String name, long length, java.lang.String mimetype, java.io.InputStream stream, java.lang.Runnable closer)  
    • Constructor Detail

      • DefaultContentResult

        public DefaultContentResult​(java.lang.String name,
                                    long length,
                                    java.lang.String mimetype,
                                    java.io.InputStream stream,
                                    java.lang.Runnable closer)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException