|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.actions.DownloadAction.ResourceStreamInfo
public static class DownloadAction.ResourceStreamInfo
A concrete implementation of the StreamInfo interface
which simplifies the downloading of a web application resource.
| Constructor Summary | |
|---|---|
DownloadAction.ResourceStreamInfo(String contentType,
ServletContext context,
String path)
Constructs an instance of this class, based on the supplied parameters. |
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the content type of the stream to be downloaded. |
InputStream |
getInputStream()
Returns an input stream on the resource to be downloaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadAction.ResourceStreamInfo(String contentType,
ServletContext context,
String path)
contentType - The content type of the file.context - The servlet context for the resource.path - The path to the resource to be downloaded.| Method Detail |
|---|
public String getContentType()
getContentType in interface DownloadAction.StreamInfo
public InputStream getInputStream()
throws IOException
DownloadAction.
getInputStream in interface DownloadAction.StreamInfoIOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||