public class Page
extends java.lang.Object
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
void |
free()
Dummy method to make it compatible with native vorbis Page class
|
byte[] |
getBody()
Obtain the body of the page.
|
long |
getGranulePos()
Obtains the granule position property of the page.
|
byte[] |
getHeader()
Obtain the header of the page.
|
int |
getPackets()
Calls ogg_page_packets().
|
int |
getPageNo()
Calls ogg_page_pageno().
|
int |
getSerialNo()
Obtain the serial number of the stream the page belongs to.
|
int |
getVersion()
Obtains the stream structure version.
|
boolean |
isBos()
Returns the "begin of stream" property of the page.
|
boolean |
isContinued()
Returns if the page is continued.
|
boolean |
isEos()
Returns the "end of stream" property of the page.
|
void |
setChecksum()
Calculate and set the checksum of the page.
|
void |
setData(byte[] abHeader,
int nHeaderOffset,
int nHeaderLength,
byte[] abBody,
int nBodyOffset,
int nBodyLength) |
public void free()
public int getVersion()
public boolean isContinued()
public int getPackets()
public boolean isBos()
public boolean isEos()
public long getGranulePos()
public int getSerialNo()
public int getPageNo()
public void setChecksum()
public byte[] getHeader()
public byte[] getBody()
public void setData(byte[] abHeader, int nHeaderOffset, int nHeaderLength, byte[] abBody, int nBodyOffset, int nBodyLength)