/** * Provides a ByteArrayOutputStream for writeTo. * * @param response Response being processed. * @return A ByteArrayOutputStream for writeTo opperation. * @throws IOException DOCUMENT ME! */ public DispatcherOutputStream getDestination(HttpServletResponse response) throws IOException { buffer = new ByteArrayOutputStream(1024 * 1024); return new DispatcherOutputStream(buffer); }
/** @return response.getOutputStream(); */ public DispatcherOutputStream getDestination(HttpServletResponse response) throws IOException { ServletOutputStream outputStream = response.getOutputStream(); return new DispatcherOutputStream(outputStream); }
/** * Works against the real output stream provided by the response. * * <p>This is dangerous of course, but fast and exciting. * * @param response Response provided by doService * @return An OutputStream that works against, the response output stream. * @throws IOException If response output stream could not be aquired */ public DispatcherOutputStream getDestination(HttpServletResponse response) throws IOException { out = response.getOutputStream(); return new DispatcherOutputStream(out); }
/** * Provides a ByteArrayOutputStream for writeTo. * * @param response Response being processed. * @return A ByteArrayOutputStream for writeTo opperation. * @throws IOException DOCUMENT ME! */ public DispatcherOutputStream getDestination(HttpServletResponse response) throws IOException { buffer = new ByteArrayOutputStream(1024 * 1024); return new DispatcherOutputStream(buffer); }
return new DispatcherOutputStream(safe);
public DispatcherOutputStream getDestination(HttpServletResponse response) throws IOException { out = new PartialBufferedOutputStream2(response, bufferedSize()); return new DispatcherOutputStream(out); }