|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BroadcastFileListener
The BroadcastFileListener
interface is implemented by
application classes which require notification of changes to
BroadcastFile
data.
Method Summary | |
---|---|
void |
broadcastFileChanged(BroadcastFileEvent event)
Notifies the BroadcastFileListener that the
BroadcastFile has changed in the broadcast. |
void |
broadcastFileLost(BroadcastFileEvent event)
Notifies the BroadcastFileListener that the
BroadcastFile has been lost from the broadcast. |
Method Detail |
---|
void broadcastFileChanged(BroadcastFileEvent event)
BroadcastFileListener
that the
BroadcastFile
has changed in the broadcast.
If the contents of a BroadcastFile
change while an
application is reading its data from the local cache, the
cached data shall either (a) remain entirely unchanged or (b)
be flushed from the cache. If the data is flushed from the
cache, attempts to read from this BroadcastFile
using pre-existing file reading objects
(e.g. FileInputStream
, FileReader
, or
RandomAccessFile
) will fail.
To read the new data, the application must create a new
file reading object. To ensure that this data is the most recent
version from the broadcast, the application should first invoke
the BroadcastFile.refreshCache()
method.
No guarantees are provided concerning the ability of the
receiver to detect changes to the broadcast
BroadcastFile
or the latency of event notification
if a change is detected.
event
- Event indicating BroadcastFile
that
has changed.BroadcastFile.refreshCache()
void broadcastFileLost(BroadcastFileEvent event)
BroadcastFileListener
that the
BroadcastFile
has been lost from the broadcast.
Reason for losing BroadcastFile
from the broadcast
could be selection of another service, transmission errors,
discontinuation of the broadcast or others.
If the contents of a BroadcastFile
is lost while an
application is reading its data from the local cache, the
cached data shall either (a) remain available or (b)
be cleared from the cache. If the data is cleared from the
cache, attempts to read from this BroadcastFile
using pre-existing file reading objects
(e.g. FileInputStream
, FileReader
, or
RandomAccessFile
) will fail. Creation of new file
reading object MUST also fail. To ensure information about file
availability is the most recent from the broadcast, the application should first invoke
the BroadcastFile.refreshCache()
method on the parent directory.
No guarantees are provided concerning the ability of the
receiver to detect changes to the broadcast
BroadcastFile
or the latency of event notification
if a lost is detected.
event
- Event indicating BroadcastFile
that
has changed.BroadcastFile.refreshCache()
|
Java DTV API 1.3 18-Nov-2009 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |