|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.metadata.Metadata
org.kc7bfi.jflac.metadata.StreamInfo
public class StreamInfo
StreamInfo Metadata block.
| Field Summary |
|---|
| 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 | |
|---|---|
StreamInfo(BitInputStream is,
int length,
boolean isLast)
The constructor. |
|
| Method Summary | |
|---|---|
void |
addTotalSamples(long totalSamples)
|
int |
calcLength()
Calculate the metadata block size. |
boolean |
compatiable(StreamInfo info)
Check for compatiable StreamInfo. |
AudioFormat |
getAudioFormat()
|
int |
getBitsPerSample()
|
int |
getChannels()
|
int |
getMaxBlockSize()
|
int |
getMaxFrameSize()
|
int |
getMinBlockSize()
|
int |
getMinFrameSize()
|
int |
getSampleRate()
|
long |
getTotalSamples()
|
void |
setTotalSamples(long totalSamples)
|
String |
toString()
Convert to string. |
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 |
| Constructor Detail |
|---|
public StreamInfo(BitInputStream is,
int length,
boolean isLast)
throws IOException
is - The InputBitStreamlength - Length of the recordisLast - True if this is the last Metadata block in the chain
IOException - Thrown if error reading from InputBitStream| Method Detail |
|---|
public void write(BitOutputStream os,
boolean isLast)
throws IOException
os - The output streamisLast - True if this is the last metadata block
IOException - Thrown if error writing datapublic int calcLength()
public boolean compatiable(StreamInfo info)
info - The StreamInfo block to check
public String toString()
toString in class ObjectObject.toString()public int getMaxBlockSize()
public int getMinBlockSize()
public long getTotalSamples()
public void setTotalSamples(long totalSamples)
totalSamples - The totalSamples to set.public void addTotalSamples(long totalSamples)
totalSamples - The totalSamples to add.public int getMaxFrameSize()
public int getMinFrameSize()
public int getSampleRate()
public AudioFormat getAudioFormat()
public int getBitsPerSample()
public int getChannels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||