|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PagingAlgorithm
This interface describes a paging algorithm, which can be used to produce
pages for the ogg stream. All decisions about grouping and timing of
writing pages are delegated to a class implementing this interface. All
methods of this interface will be called by the container page factory.
Note: currently the algorithm cannot specify to break up a packet to
multiple pages. Only the page factory can break up packets, when the
packet exceeds the maximum page size.
| Method Summary | |
|---|---|
boolean |
handleNewPacket(Page page,
Packet packet)
When a new packet arrives, this method is called to decide, whether to append packet to the current page or not. |
boolean |
handleWritePage(Page page)
Called when a page is about to be written. |
| Method Detail |
|---|
boolean handleNewPacket(Page page,
Packet packet)
page - The existing page.packet - The packet arrived.
boolean handleWritePage(Page page)
handleNewPacket() of this
interface, and also when other pages are written to the target
ogg stream, by other logical streams.
page - The page which can be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||