use of org.apache.cxf.jaxrs.nio.NioOutputStream in project cxf by apache.
the class BinaryDataProvider method copyUsingNio.
protected void copyUsingNio(InputStream is, OutputStream os, Continuation cont) {
NioWriteListenerImpl listener = new NioWriteListenerImpl(cont, new NioWriteEntity(getNioHandler(is), null), new NioOutputStream(os));
Message m = JAXRSUtils.getCurrentMessage();
m.put(WriteListener.class, listener);
cont.suspend(0);
}
Aggregations