|
||||||||||
| 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(java.lang.String contentType,
javax.servlet.ServletContext context,
java.lang.String path)
Constructs an instance of this class, based on the supplied parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the content type of the stream to be downloaded. |
java.io.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(java.lang.String contentType,
javax.servlet.ServletContext context,
java.lang.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 java.lang.String getContentType()
getContentType in interface DownloadAction.StreamInfo
public java.io.InputStream getInputStream()
throws java.io.IOException
DownloadAction.
getInputStream in interface DownloadAction.StreamInfojava.io.IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||