Class VitamStreamingOutput

java.lang.Object
fr.gouv.vitam.common.server.application.VitamStreamingOutput
All Implemented Interfaces:
VitamAutoCloseable, AutoCloseable, javax.ws.rs.core.StreamingOutput

public class VitamStreamingOutput extends Object implements javax.ws.rs.core.StreamingOutput, VitamAutoCloseable
Helper for Streaming to output one InputStream or File in non async mode
  • Constructor Details

    • VitamStreamingOutput

      public VitamStreamingOutput(InputStream inputStream)
      Parameters:
      inputStream - the inputstream to forward without Async mode
    • VitamStreamingOutput

      public VitamStreamingOutput(File file, boolean toDelete)
      Parameters:
      file - the file to output
      toDelete - If True, will delete the file once sent
  • Method Details