public class SyncState
extends java.lang.Object
Constructor and Description |
---|
SyncState() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Calls ogg_sync_clear().
|
void |
free() |
void |
init()
Calls ogg_sync_init().
|
int |
pageOut(Page page)
Returns a page from the stream buffer, if possible.
|
int |
pageseek(Page page)
Synchronizes the stream.
|
void |
reset()
Calls ogg_sync_reset().
|
int |
write(byte[] abBuffer,
int nBytes)
Writes to the stream buffer.
|
public void free()
public void init()
public void clear()
public void reset()
public int write(byte[] abBuffer, int nBytes)
public int pageseek(Page page)
page
- The Page to store the result of the page search
in. The content is only changed if the return value is > 0.public int pageOut(Page page)
page
- The Page to store the result of the page search
in. The content is only changed if the return value is 1.