org.kc7bfi.jflac.metadata
Class SeekPoint

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

public class SeekPoint
extends Object

An entry into the seek table.

Author:
kc7bfi

Field Summary
protected  int frameSamples
           
protected  long sampleNumber
           
protected  long streamOffset
           
 
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.
 String toString()
           
 void write(BitOutputStream os)
          Write out an individual seek point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sampleNumber

protected long sampleNumber

streamOffset

protected long streamOffset

frameSamples

protected int frameSamples
Constructor Detail

SeekPoint

public SeekPoint(BitInputStream is)
          throws IOException
The constructor.

Parameters:
is - The InputBitStream
Throws:
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 IOException
Write out an individual seek point.

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

toString

public String toString()
Overrides:
toString in class 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.


Copyright © 2004-2011. All Rights Reserved.