public class VitamStreamingOutput extends Object implements javax.ws.rs.core.StreamingOutput, VitamAutoCloseable
Constructor and Description |
---|
VitamStreamingOutput(File file,
boolean toDelete) |
VitamStreamingOutput(InputStream inputStream) |
public VitamStreamingOutput(InputStream inputStream)
inputStream
- the inputstream to forward without Async modepublic VitamStreamingOutput(File file, boolean toDelete)
file
- the file to outputtoDelete
- If True, will delete the file once sentpublic void write(OutputStream output) throws IOException
write
in interface javax.ws.rs.core.StreamingOutput
IOException
public void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2018 Vitam. All rights reserved.