echopoint.tucana
Class FileDownloadProvider
java.lang.Object
echopoint.tucana.AbstractDownloadProvider
echopoint.tucana.FileDownloadProvider
- All Implemented Interfaces:
- DownloadProvider, Serializable
public class FileDownloadProvider
- extends AbstractDownloadProvider
A download provider for sending files to the client.
- Version:
- $Id: FileDownloadProvider.java 255 2009-11-29 12:16:16Z sptrakesh $
- Author:
- Rakesh 2008-11-10
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDownloadProvider
public FileDownloadProvider(File file)
getContentType
public String getContentType()
- Returns the content type, for example "text/plain".
- Returns:
- the content type.
writeFile
public void writeFile(OutputStream out)
throws IOException
- Writes the file data to the output stream.
- Parameters:
out - the output stream to which the file data must be written.
- Throws:
IOException - If errors are encountered while writing the contents
to the output stream.