org.kc7bfi.jflac.metadata
Class SeekTable

java.lang.Object
  extended by org.kc7bfi.jflac.metadata.Metadata
      extended by org.kc7bfi.jflac.metadata.SeekTable

public class SeekTable
extends Metadata

SeekTable Metadata block.

Author:
kc7bfi

Field Summary
protected  SeekPoint[] points
           
 
Fields inherited from class org.kc7bfi.jflac.metadata.Metadata
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 Summary
SeekTable(BitInputStream is, int length, boolean isLast)
          The constructor.
SeekTable(SeekPoint[] points, boolean isLast)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class org.kc7bfi.jflac.metadata.Metadata
isLast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

points

protected SeekPoint[] points
Constructor Detail

SeekTable

public SeekTable(BitInputStream is,
                 int length,
                 boolean isLast)
          throws IOException
The constructor.

Parameters:
is - The InputBitStream
length - Length of the record
isLast - True if this is the last Metadata block in the chain
Throws:
IOException - Thrown if error reading from InputBitStream

SeekTable

public SeekTable(SeekPoint[] points,
                 boolean isLast)
Constructor.

Parameters:
points - Seek Points
isLast - True if this is the last Metadata block in the chain
Method Detail

write

public void write(BitOutputStream os,
                  boolean isLast)
           throws IOException
Write out the metadata block.

Parameters:
os - The output stream
isLast - True if this is the last metadata block
Throws:
IOException - Thrown if error writing data

calcLength

public int calcLength()
Calculate the metadata block size.

Returns:
The metadata block size

getSeekPoint

public SeekPoint getSeekPoint(int idx)
Return the selected seek point.

Parameters:
idx - The seek point number
Returns:
The selected seek point

numberOfPoints

public int numberOfPoints()
Return the number of seek points.

Returns:
the number of seek points

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011. All Rights Reserved.