nextapp.echo2.app.filetransfer
Class AbstractDownloadProvider

java.lang.Object
  extended by nextapp.echo2.app.filetransfer.AbstractDownloadProvider
All Implemented Interfaces:
java.io.Serializable, DownloadProvider
Direct Known Subclasses:
ResourceDownloadProvider

public abstract class AbstractDownloadProvider
extends java.lang.Object
implements DownloadProvider, java.io.Serializable

An abstract implementation of a DownloadProvider.

See Also:
Serialized Form

Constructor Summary
AbstractDownloadProvider()
           
 
Method Summary
 java.lang.String getFileName()
          Returns null by default.
 int getSize()
          Returns -1 by default, indicating an unknown file size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo2.app.filetransfer.DownloadProvider
getContentType, writeFile
 

Constructor Detail

AbstractDownloadProvider

public AbstractDownloadProvider()
Method Detail

getFileName

public java.lang.String getFileName()
Returns null by default.

Specified by:
getFileName in interface DownloadProvider
Returns:
The file's name.
See Also:
DownloadProvider.getFileName()

getSize

public int getSize()
Returns -1 by default, indicating an unknown file size.

Specified by:
getSize in interface DownloadProvider
Returns:
The size of the file.
See Also:
DownloadProvider.getSize()