EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana
Class FileDownloadProvider

java.lang.Object
  extended by echopoint.tucana.AbstractDownloadProvider
      extended by 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

Field Summary
 
Fields inherited from class echopoint.tucana.AbstractDownloadProvider
contentDisposition, contentType, fileName, size, status
 
Constructor Summary
FileDownloadProvider(File file)
           
 
Method Summary
 String getContentType()
          Returns the content type, for example "text/plain".
 void writeFile(OutputStream out)
          Writes the file data to the output stream.
 
Methods inherited from class echopoint.tucana.AbstractDownloadProvider
getContentDisposition, getFileName, getSize, getStatus, setContentType, setFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloadProvider

public FileDownloadProvider(File file)
Method Detail

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.

EchoPoint API - 3.0.0b5
App Webcontainer