qdown.quickDownloader.downloadHistory
Class GetDownloadHistory

java.lang.Object
  extended byqdown.quickDownloader.downloadHistory.GetDownloadHistory

public class GetDownloadHistory
extends java.lang.Object

The class is used to return all downloads which the user has implemented and have been recorded by the application.


Constructor Summary
GetDownloadHistory()
           
 
Method Summary
static java.util.Vector getDownloadHistory()
          Returns all the downloads which the user has implemented in the form of a vector.
static java.util.Vector getDownloads()
          Returns all the downloads which the user has implemented in the form of a vector
static java.lang.String getFileName(java.lang.String urlName)
          The file name of the download is extracted by specifying the name of the download
static boolean openFile()
          Used to open a stream to the Download history file
static void removeHistory(java.lang.String fileIds)
          Removes a Download history from the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetDownloadHistory

public GetDownloadHistory()
Method Detail

getDownloadHistory

public static java.util.Vector getDownloadHistory()
Returns all the downloads which the user has implemented in the form of a vector. The method opens a tream to the actuals download file containing this information

Returns:
A vector containing all previous downloads which have been implemented

getDownloads

public static java.util.Vector getDownloads()
Returns all the downloads which the user has implemented in the form of a vector

Returns:
A vector containing all previous downloads which have been implemented

getFileName

public static java.lang.String getFileName(java.lang.String urlName)
The file name of the download is extracted by specifying the name of the download

Parameters:
urlName - The name of the download from which the name will be extracted
Returns:
The file name

openFile

public static boolean openFile()
Used to open a stream to the Download history file

Returns:
Success of whether the stream was opened

removeHistory

public static void removeHistory(java.lang.String fileIds)
                          throws java.lang.Exception
Removes a Download history from the list

Parameters:
fileIds - The id of the download to be removed
Throws:
java.lang.Exception