org.apache.struts.actions
Interface DownloadAction.StreamInfo
- DownloadAction.FileStreamInfo, DownloadAction.ResourceStreamInfo
public static interface DownloadAction.StreamInfo
The information on a file, or other stream, to be downloaded by the
DownloadAction
.
String | getContentType() - Returns the content type of the stream to be downloaded.
|
InputStream | getInputStream() - Returns an input stream on the content to be downloaded.
|
getContentType
public String getContentType()
Returns the content type of the stream to be downloaded.
- The content type of the stream.
getInputStream
public InputStream getInputStream()
throws IOException
Returns an input stream on the content to be downloaded. This stream
will be closed by the DownloadAction
.
- The input stream for the content to be downloaded.
Copyright © 2000-2005 - The Apache Software Foundation