404405406407408409410411412413414
if (!chunking && wrappedStream instanceof CachedOutputStream) { CachedOutputStream out = (CachedOutputStream)wrappedStream; this.basicEntity.setContentLength(out.size()); wrappedStream = null; handleHeadersTrustCaching(); out.writeCacheTo(wrappedStream); } super.close(); } @Override
90919293949596979899100
buffer.append("\nMessage:\n"); } if (bos.size() > limit) { buffer.append("(message truncated to " + limit + " bytes)\n"); } bos.writeCacheTo(buffer, limit); bos.close(); } catch (IOException e) { throw new Fault(e); }
336337338339340341342343344345346
if (enabled) { OutputStream os = m.getContent(OutputStream.class); if (os != osOriginal && os instanceof CachedOutputStream) { CachedOutputStream cos = (CachedOutputStream)os; if (cos.size() != 0) { cos.writeCacheTo(osOriginal); } } } }