|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavazoom.jlme.decoder.BitStream
public final class BitStream
The Bistream class is responsible for parsing an MPEG audio bitstream. REVIEW: much of the parsing currently occurs in the
various decoders. This should be moved into this class and associated inner classes.
| Constructor Summary | |
|---|---|
BitStream(java.io.InputStream in)
|
|
| Method Summary | |
|---|---|
void |
close()
Description of the Method |
void |
closeFrame()
Description of the Method |
boolean |
isSyncCurrentPosition(int syncmode)
|
boolean |
isSyncMark(int headerstring,
int syncmode,
int word)
|
int |
readbits(int num)
|
Header |
readFrame()
Reads and parses the next frame from the input source. |
void |
unreadFrame()
Unreads the bytes read from the frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitStream(java.io.InputStream in)
| Method Detail |
|---|
public final boolean isSyncCurrentPosition(int syncmode)
throws java.io.IOException
java.io.IOException
public final boolean isSyncMark(int headerstring,
int syncmode,
int word)
public final int readbits(int num)
public void close()
throws java.io.IOException
java.io.IOException - Description of Exception
public Header readFrame()
throws java.io.IOException
java.io.IOException - Description of Exception
public final void unreadFrame()
throws java.io.IOException
java.io.IOException - Description of Exception
BitstreamExceptionpublic void closeFrame()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||