org.jurvis.util
Interface JvFileFetcher

All Known Implementing Classes:
JvDefaultFileFetcher

public interface JvFileFetcher

Interface for the class responsible for downloading a file.

Author:
Neil W. Weber

Method Summary
 void fetch(File dest, JvDataTransferModel transferModel)
          Fetch the file and notify transferModel of the progress.
 long getContentLength()
          Return the size of the downloaded file.
 String getEtag()
          Return the Etag that identifies the file.
 long getExpires()
          Return the date the cached file should expire.
 long getLastModified()
          Return the last modified date of the file.
 

Method Detail

getContentLength

long getContentLength()
Return the size of the downloaded file.


getLastModified

long getLastModified()
Return the last modified date of the file.


getExpires

long getExpires()
Return the date the cached file should expire. Returns 0 if the file shouldn't be cached.


getEtag

String getEtag()
Return the Etag that identifies the file. Returns null if one isn't available.


fetch

void fetch(File dest,
           JvDataTransferModel transferModel)
           throws IOException
Fetch the file and notify transferModel of the progress.

Parameters:
dest - the cache entry
transferModel - object holding status of the transfer; may be null
Throws:
IOException


Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.