public class SeekTable extends Metadata
| Modifier and Type | Field and Description |
|---|---|
protected SeekPoint[] |
points |
isLast, METADATA_TYPE_APPLICATION, METADATA_TYPE_CUESHEET, METADATA_TYPE_PADDING, METADATA_TYPE_PICTURE, METADATA_TYPE_SEEKTABLE, METADATA_TYPE_STREAMINFO, METADATA_TYPE_VORBIS_COMMENT, STREAM_METADATA_IS_LAST_LEN, STREAM_METADATA_LENGTH_LEN, STREAM_METADATA_TYPE_LEN| Constructor and Description |
|---|
SeekTable(BitInputStream is,
int length,
boolean isLast)
The constructor.
|
SeekTable(SeekPoint[] points,
boolean isLast)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
calcLength()
Calculate the metadata block size.
|
SeekPoint |
getSeekPoint(int idx)
Return the selected seek point.
|
int |
numberOfPoints()
Return the number of seek points.
|
String |
toString() |
void |
write(BitOutputStream os,
boolean isLast)
Write out the metadata block.
|
protected SeekPoint[] points
public SeekTable(BitInputStream is, int length, boolean isLast) throws IOException
is - The InputBitStreamlength - Length of the recordisLast - True if this is the last Metadata block in the chainIOException - Thrown if error reading from InputBitStreampublic SeekTable(SeekPoint[] points, boolean isLast)
points - Seek PointsisLast - True if this is the last Metadata block in the chainpublic void write(BitOutputStream os, boolean isLast) throws IOException
os - The output streamisLast - True if this is the last metadata blockIOException - Thrown if error writing datapublic int calcLength()
public SeekPoint getSeekPoint(int idx)
idx - The seek point numberpublic int numberOfPoints()
public String toString()
toString in class ObjectObject.toString()Copyright © 2004–2017. All rights reserved.