org.kc7bfi.jflac.metadata
Class SeekPoint

java.lang.Object
  extended by org.kc7bfi.jflac.metadata.SeekPoint

public class SeekPoint
extends java.lang.Object

An entry into the seek table.


Constructor Summary
SeekPoint(BitInputStream is)
          The constructor.
SeekPoint(long sampleNumber, long streamOffset, int frameSamples)
          The constructor.
 
Method Summary
 int getFrameSamples()
          Return the frame samples.
 long getSampleNumber()
          return the sample number.
 long getStreamOffset()
          return the stream offset.
 void setStreamOffset(long streamOffset)
          Set the stream offset.
 java.lang.String toString()
           
 void write(BitOutputStream os)
          Write out an individual seek point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeekPoint

public SeekPoint(BitInputStream is)
          throws java.io.IOException
The constructor.

Parameters:
is - The InputBitStream
Throws:
java.io.IOException - Thrown if error reading from InputBitStream

SeekPoint

public SeekPoint(long sampleNumber,
                 long streamOffset,
                 int frameSamples)
The constructor.

Parameters:
sampleNumber - The sample number of the target frame
streamOffset - The offset, in bytes, of the target frame with respect to beginning of the first frame
frameSamples - The number of samples in the target frame
Method Detail

write

public void write(BitOutputStream os)
           throws java.io.IOException
Write out an individual seek point.

Parameters:
os - The output stream
Throws:
java.io.IOException - Thrown if error writing data

toString

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

getFrameSamples

public int getFrameSamples()
Return the frame samples.

Returns:
Returns the frameSamples.

getSampleNumber

public long getSampleNumber()
return the sample number.

Returns:
Returns the sampleNumber.

getStreamOffset

public long getStreamOffset()
return the stream offset.

Returns:
Returns the streamOffset.

setStreamOffset

public void setStreamOffset(long streamOffset)
Set the stream offset.

Parameters:
streamOffset - The stream offset to set.