|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.io.ArticleManager
public class ArticleManager
ArticleManager is a class for management of Article I/O. This includes generating keywords and writing article content to file
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
generateKeywords(Article a)
Generates a set of keywords for a given article |
static java.lang.String |
getContents(Article a)
Gets the html contents of an article |
static boolean |
removeArticle(Article a)
Removes an article content by deleting the file |
static boolean |
setContents(Article a,
java.lang.String articleContent)
Set the contents of an article to a html represented in the form of a string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean setContents(Article a, java.lang.String articleContent)
a
- Article to change html contentarticleContent
- HTML string that represents the html content
public static java.lang.String getContents(Article a)
a
- Article to get html content from
public static boolean removeArticle(Article a)
a
- Article to remove
public static java.util.Set<java.lang.String> generateKeywords(Article a)
a
- Article to generate keywords from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |