Class Overview
Streams image files to the ServletOutputStream - uses buffer size of 1kb
Summary
Public Methods |
void
|
doDownload(HttpServletRequest req, HttpServletResponse resp, ServletContext context, String filename, boolean shouldClose)
Sends an image to the ServletResponse output stream.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
ImageDownloader
()
Public Methods
public
void
doDownload
(HttpServletRequest req, HttpServletResponse resp, ServletContext context, String filename, boolean shouldClose)
Sends an image to the ServletResponse output stream.
Parameters
req
| The request |
resp
| The response |
context
| The servletContext |
filename
| The name of the image you want to download. |
shouldClose
| Whether the output stream should be closed or not
|