public class SingleFileStreamingOutput extends Object implements javax.ws.rs.core.StreamingOutput
| Constructor and Description |
|---|
SingleFileStreamingOutput(InputStream streamToWrite)
Instantiates a new single file streaming output.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(OutputStream outputStream)
Overriding the write method to write request data directly to Jersey outputStream .
|
public SingleFileStreamingOutput(InputStream streamToWrite)
streamToWrite - the stream to writepublic void write(OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException
write in interface javax.ws.rs.core.StreamingOutputoutputStream - the output streamIOException - Signals that an I/O exception has occurred.javax.ws.rs.WebApplicationException - the web application exceptionCopyright © 2022. All Rights Reserved.