All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.download.NewsClientClass

java.lang.Object
   |
   +----semper.download.NewsClientClass

public class NewsClientClass
extends Object
implements Serializable
The NewsClientClass is a handler to the local news database

Version:
$Revision: 1.1 $ $Date: 1998/03/13 16:40:57 $
Author:
Petros Pantis, Kostas Tzelepis

Constructor Index

 o NewsClientClass()
Object constructor

Method Index

 o getNews()
Retieves the news stored in the news database
 o getUpdateTime()
Retrieve the last date in which the news server was consulting
 o printSelf(PrintWriter)
Used only for debugging reasons
 o removeNews(Object)
Called to remove records originated from a particular host
 o removeNews(Vector)
Called to remove identical records stored in the local news database
 o storeNews(Vector, long)
Method used to store obtained news in the news database.

Constructors

 o NewsClientClass
 public NewsClientClass()
Object constructor

Methods

 o storeNews
 public boolean storeNews(Vector news,
                          long time)
Method used to store obtained news in the news database. All the identical previous stored records are replaced with the new ones

Parameters:
news - the vector object contained the news which are downloaded from the news server
time - the time label of the downloaded news
 o getNews
 public Vector getNews()
Retieves the news stored in the news database

Returns:
value a list of new software components
 o removeNews
 public void removeNews(Vector news)
Called to remove identical records stored in the local news database

Parameters:
news - the records which should be deleted from the news database
 o removeNews
 public void removeNews(Object hostObject)
Called to remove records originated from a particular host

Parameters:
hostObject - the hostname or host inetaddress object
 o getUpdateTime
 public long getUpdateTime()
Retrieve the last date in which the news server was consulting

Returns:
value last consulting date
 o printSelf
 public void printSelf(PrintWriter out)
Used only for debugging reasons


All Packages  Class Hierarchy  This Package  Previous  Next  Index