|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowserdataservice.file.AbstractFile
tvbrowserdataservice.file.SummaryFile
public class SummaryFile
The summary file gives an overview over the files located on a mirror and their versions.
| Field Summary | |
|---|---|
static String |
SUMMARY_FILE_NAME
The default file name for a summary file. |
| Constructor Summary | |
|---|---|
SummaryFile()
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
getDayProgramVersion(Date date,
String country,
String channelId,
int level)
Gets the version of a day program. |
void |
readFromStream(InputStream stream,
DownloadJob job)
Reads the summary from a stream. |
void |
setDayProgramVersion(Date date,
String country,
String channelId,
int level,
int version)
Sets the version of a day program. |
void |
writeToStream(OutputStream stream,
File fileName)
Writes the summary into a stream. |
| Methods inherited from class tvbrowserdataservice.file.AbstractFile |
|---|
readFromFile, writeToFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SUMMARY_FILE_NAME
| Constructor Detail |
|---|
public SummaryFile()
| Method Detail |
|---|
public void setDayProgramVersion(Date date,
String country,
String channelId,
int level,
int version)
date - The date of the day program.country - The country of the day program's channel.channelId - The ID of the day program's channel.level - The level to set the version for.version - The version to set.
public int getDayProgramVersion(Date date,
String country,
String channelId,
int level)
date - The date of the day program.country - The country of the day program's channel.channelId - The ID of the day program's channel.level - The level to get the version for.
-1 if there is no
version for that day program and level.
public void readFromStream(InputStream stream,
DownloadJob job)
throws IOException,
FileFormatException
readFromStream in class AbstractFilestream - The stream to read the summary from.
IOException
FileFormatException
public void writeToStream(OutputStream stream,
File fileName)
throws IOException,
FileFormatException
writeToStream in class AbstractFilestream - The stream to write the summary to.
IOException
FileFormatException
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||