Class VitamStreamingOutput

  • All Implemented Interfaces:
    VitamAutoCloseable, java.lang.AutoCloseable,

    public class VitamStreamingOutput
    extends java.lang.Object
    implements, VitamAutoCloseable
    Helper for Streaming to output one InputStream or File in non async mode
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void write​( output)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VitamStreamingOutput

        public VitamStreamingOutput​( inputStream)
        inputStream - the inputstream to forward without Async mode
      • VitamStreamingOutput

        public VitamStreamingOutput​( file,
                                    boolean toDelete)
        file - the file to output
        toDelete - If True, will delete the file once sent
    • Method Detail

      • write

        public void write​( output)
        Specified by:
        write in interface
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface VitamAutoCloseable