/** @return an excerpt from the data copied. */ @SuppressWarnings("resource") public static byte[] copyAll(InputStream from, OutputStream into) throws IOException { final ExcerptInputStream ex = new ExcerptInputStream(from); ex.copyAll(into); return ex.getExcerpt(); }
response.append(new String(((ExcerptInputStream) body).getExcerpt(), getContentCharset()));
if (body != null) { ExcerptInputStream e = new ExcerptInputStream(body); excerpt = e.getExcerpt(); String length = request.removeHeaders(HttpMessage.CONTENT_LENGTH); entityEnclosingMethod