|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnewsplugin.News
public class News
One news.
| Constructor Summary | |
|---|---|
News(Date time,
String author,
String title,
String text,
String engTitle,
String engText)
Creates a new instance of News. |
|
| Method Summary | |
|---|---|
int |
compareTo(News other)
|
String |
getAuthor()
Gets the author. |
String |
getText()
Gets the text. |
Date |
getTime()
Gets the timestamp of the news. |
String |
getTitle()
Gets the title. |
static News |
readData(ObjectInputStream in,
int version)
Loads the news. |
void |
writeData(ObjectOutputStream out)
Saves the news. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public News(Date time,
String author,
String title,
String text,
String engTitle,
String engText)
time - The timestamp of the newsauthor - The authortitle - The titletext - The textengTitle - The English titleengText - The English text| Method Detail |
|---|
public Date getTime()
public String getAuthor()
public String getTitle()
public String getText()
public void writeData(ObjectOutputStream out)
throws IOException
out - The stream to save to
IOException - When saving failed.
public static News readData(ObjectInputStream in,
int version)
throws IOException,
ClassNotFoundException
in - The stream to read from.version - The file version
IOException - If reading failed
ClassNotFoundException - If the given stream is in a wrong format.public int compareTo(News other)
compareTo in interface Comparable<News>
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||