use of org.apache.cxf.io.CachedWriter in project cxf by apache.
the class WireTapIn method handleReader.
private void handleReader(Message message, Reader reader) throws IOException {
CachedWriter writer = new CachedWriter();
IOUtils.copyAndCloseInput(reader, writer);
message.setContent(Reader.class, writer.getReader());
message.setContent(CachedWriter.class, writer);
}
Aggregations