|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthu.netmind.ogg.DefaultPagingAlgorithm
public class DefaultPagingAlgorithm
This is a default implementation of a paging algorithm. This algorithm simply completes a page around 4-8 kB of data, and sends it the first time it has the chance.
| Constructor Summary | |
|---|---|
DefaultPagingAlgorithm()
|
|
| Method Summary | |
|---|---|
boolean |
handleNewPacket(Page page,
Packet packet)
Implementation start a new page every 4-8 kB, if it can, but does not break up a packet to multiple pages, if it fits. |
void |
handlePageReady(Page page)
Implementation does not change anything. |
boolean |
handleWritePage(Page page)
Return always true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPagingAlgorithm()
| Method Detail |
|---|
public boolean handleNewPacket(Page page,
Packet packet)
handleNewPacket in interface PagingAlgorithmpage - The existing page.packet - The packet arrived.
public boolean handleWritePage(Page page)
handleWritePage in interface PagingAlgorithmpage - The page which can be written.
public void handlePageReady(Page page)
page - The page completed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||