org.apache.struts.actions

Interface DownloadAction.StreamInfo

Known Implementing Classes:
DownloadAction.FileStreamInfo, DownloadAction.ResourceStreamInfo

public static interface DownloadAction.StreamInfo

The information on a file, or other stream, to be downloaded by the DownloadAction.

Method Summary

abstract String
getContentType()
Returns the content type of the stream to be downloaded.
abstract InputStream
getInputStream()
Returns an input stream on the content to be downloaded.

Method Details

getContentType

public abstract String getContentType()
Returns the content type of the stream to be downloaded.
Returns:
The content type of the stream.

getInputStream

public abstract InputStream getInputStream()
            throws IOException
Returns an input stream on the content to be downloaded. This stream will be closed by the DownloadAction.
Returns:
The input stream for the content to be downloaded.

Copyright B) 2000-2007 - The Apache Software Foundation