org.tritonus.lowlevel.pogg
Class StreamState

java.lang.Object
  extended by org.tritonus.lowlevel.pogg.StreamState

public class StreamState
extends java.lang.Object

Wrapper for ogg_stream_state.


Constructor Summary
StreamState()
           
 
Method Summary
 int clear()
          Calls ogg_stream_clear().
 int flush(Page page)
          Calls ogg_stream_flush().
 void free()
           
 int init(int nSerialNo)
          Calls ogg_stream_init().
 boolean isEOSReached()
          Calls ogg_stream_eos().
 int packetIn(Packet packet)
          Calls ogg_stream_packetin().
 int packetOut(Packet packet)
          Calls ogg_stream_packetout().
 int packetPeek(Packet packet)
          Calls ogg_stream_packetpeek().
 int pageIn(Page page)
          add the incoming page to the stream state; we decompose the page into packet segments here as well.
 int pageOut(Page page)
          Calls ogg_stream_pageout().
 int reset()
          Calls ogg_stream_reset().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamState

public StreamState()
Method Detail

free

public void free()

init

public int init(int nSerialNo)
Calls ogg_stream_init().


clear

public int clear()
Calls ogg_stream_clear().


reset

public int reset()
Calls ogg_stream_reset().


isEOSReached

public boolean isEOSReached()
Calls ogg_stream_eos().


packetIn

public int packetIn(Packet packet)
Calls ogg_stream_packetin().


pageOut

public int pageOut(Page page)
Calls ogg_stream_pageout().


flush

public int flush(Page page)
Calls ogg_stream_flush().


pageIn

public int pageIn(Page page)
add the incoming page to the stream state; we decompose the page into packet segments here as well.

Returns:
0 on success, -1 if the stream serial number stored in the page does not match the one stored in the stream state or if the protocol version stored in the page is greater than 0.

packetOut

public int packetOut(Packet packet)
Calls ogg_stream_packetout().


packetPeek

public int packetPeek(Packet packet)
Calls ogg_stream_packetpeek().