Package org.apache.struts.extras.actions
Interface DownloadAction.StreamInfo
- All Known Implementing Classes:
DownloadAction.FileStreamInfo
,DownloadAction.ResourceStreamInfo
- Enclosing class:
DownloadAction
public static interface DownloadAction.StreamInfo
The information on a file, or other stream, to be downloaded by the
DownloadAction
.-
Method Summary
Modifier and TypeMethodDescriptionReturns the content type of the stream to be downloaded.Returns an input stream on the content to be downloaded.
-
Method Details
-
getContentType
String getContentType()Returns the content type of the stream to be downloaded.- Returns:
- The content type of the stream.
-
getInputStream
Returns an input stream on the content to be downloaded. This stream will be closed by theDownloadAction
.- Returns:
- The input stream for the content to be downloaded.
- Throws:
IOException
- if an error occurs
-