Modifier and Type | Field and Description |
---|---|
private SampleInfo |
sampleInfo |
private Sample[] |
samples |
Constructor and Description |
---|
SampleSet(ByteBuffer bb)
Creates a SampleSet by reading it from the given byte buffer
|
SampleSet(DataInputStream is)
Creates a SampleSet by reading it from the given input stream
|
SampleSet(StringTokenizer tok,
BufferedReader reader)
Reads a SampleSet from the input reader.
|
Modifier and Type | Method and Description |
---|---|
void |
dumpBinary(DataOutputStream os)
Dumps this sample set to the given stream
|
int |
getFrameSize(int frame)
Gets the size of the given frame
|
Sample |
getSample(int index)
return the sample associated with the index
|
SampleInfo |
getSampleInfo()
Retrieves the info on this SampleSet
|
int |
getUnitSize(int start,
int end)
Returns the size of the unit represented
by the given start and end points
|
private SampleInfo sampleInfo
public SampleSet(StringTokenizer tok, BufferedReader reader)
tok
- tokenizer that holds parameters for this SampleSetreader
- the input reader to read the data frompublic SampleSet(ByteBuffer bb) throws IOException
bb
- source of the Unit dataIOException
- if an IO error occurspublic SampleSet(DataInputStream is) throws IOException
is
- source of the Unit dataIOException
- if an IO error occurspublic void dumpBinary(DataOutputStream os) throws IOException
os
- the output streamIOException
- if an error occurs.public Sample getSample(int index)
index
- the index of the samplepublic SampleInfo getSampleInfo()
public int getUnitSize(int start, int end)
start
- the start of the unitend
- the end of the unitpublic int getFrameSize(int frame)
frame
- the frame of interestWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses