public class SeekPoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
frameSamples |
protected long |
sampleNumber |
protected long |
streamOffset |
| Constructor and Description |
|---|
SeekPoint(BitInputStream is)
The constructor.
|
SeekPoint(long sampleNumber,
long streamOffset,
int frameSamples)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected long sampleNumber
protected long streamOffset
protected int frameSamples
public SeekPoint(BitInputStream is) throws IOException
is - The InputBitStreamIOException - Thrown if error reading from InputBitStreampublic SeekPoint(long sampleNumber,
long streamOffset,
int frameSamples)
sampleNumber - The sample number of the target framestreamOffset - The offset, in bytes, of the target frame with respect to beginning of the first frameframeSamples - The number of samples in the target framepublic void write(BitOutputStream os) throws IOException
os - The output streamIOException - Thrown if error writing datapublic String toString()
toString in class ObjectObject.toString()public int getFrameSamples()
public long getSampleNumber()
public long getStreamOffset()
public void setStreamOffset(long streamOffset)
streamOffset - The stream offset to set.Copyright © 2004–2017. All rights reserved.