public static class DownloadAction.FileStreamInfo extends Object implements DownloadAction.StreamInfo
StreamInfo
interface
which simplifies the downloading of a file from the disk.Constructor and Description |
---|
FileStreamInfo(String contentType,
File file)
Constructs an instance of this class, based on the supplied
parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content type of the stream to be downloaded.
|
InputStream |
getInputStream()
Returns an input stream on the file to be downloaded.
|
public String getContentType()
getContentType
in interface DownloadAction.StreamInfo
public InputStream getInputStream() throws IOException
DownloadAction
.getInputStream
in interface DownloadAction.StreamInfo
IOException
- if an error occursCopyright © 2000–2016 Apache Software Foundation. All rights reserved.