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
-
NewsClientClass()
- Object constructor
-
getNews()
- Retieves the news stored in the news database
-
getUpdateTime()
- Retrieve the last date in which the news server was consulting
-
printSelf(PrintWriter)
- Used only for debugging reasons
-
removeNews(Object)
- Called to remove records originated from a particular host
-
removeNews(Vector)
- Called to remove identical records stored in the local news database
-
storeNews(Vector, long)
- Method used to store obtained news in the news database.
NewsClientClass
public NewsClientClass()
- Object constructor
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
getNews
public Vector getNews()
- Retieves the news stored in the news database
- Returns:
- value a list of new software components
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
removeNews
public void removeNews(Object hostObject)
- Called to remove records originated from a particular host
- Parameters:
- hostObject - the hostname or host inetaddress object
getUpdateTime
public long getUpdateTime()
- Retrieve the last date in which the news server was consulting
- Returns:
- value last consulting date
printSelf
public void printSelf(PrintWriter out)
- Used only for debugging reasons
All Packages Class Hierarchy This Package Previous Next Index