public interface NewsService
| Modifier and Type | Method and Description |
|---|---|
String |
getNewsFilePath()
Get the path for the news files.
|
String |
readNewsFile(String newsFile)
Reads news from a text file.
|
boolean |
validate(String newsName)
Check if the newsName is a valid one
|
String |
writeNewsFile(String newsFile,
String news)
Writes news to a text file.
|
String readNewsFile(String newsFile)
newsFile - name of the news file to read in, relative to the news file path.String writeNewsFile(String newsFile, String news)
newsFile - name of the news file to read in, relative to the news file path.news - the text to be written to the file.String getNewsFilePath()
boolean validate(String newsName)
newsName - Copyright © 2016 DuraSpace. All rights reserved.