org.apache.struts.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
 java.lang.String getContentType()
          Returns the content type of the stream to be downloaded.
 java.io.InputStream getInputStream()
          Returns an input stream on the content to be downloaded.
 

Method Detail

getContentType

java.lang.String getContentType()
Returns the content type of the stream to be downloaded.

Returns:
The content type of the stream.

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.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.
Throws:
java.io.IOException - if an error occurs


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.