@Test public void shouldFlushWholeFileToHttpResponse() throws IOException { FileDownload fd = new FileDownload(file, "type"); fd.write(response); assertArrayEquals(bytes, outputStream.toByteArray()); }
public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); void write(HttpServletResponse response); }
FileDownload implements Download { public void write(HttpServletResponse response) throws IOException { inputDownload.write(response); } FileDownload(File file, String contentType, String fileName);  FileDownload(File file, String contentType);  FileDownload(File file, String contentType, String fileName, boolean doDownload); void write(HttpServletResponse response);  }