javazoom.jlme.decoder
Class BitStream
java.lang.Object
|
+--javazoom.jlme.decoder.BitStream
- public final class BitStream
- extends java.lang.Object
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.
- Author:
- micah
Constructor Summary |
BitStream(java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitStream
public BitStream(java.io.InputStream in)
isSyncCurrentPosition
public final boolean isSyncCurrentPosition(int syncmode)
throws java.io.IOException
isSyncMark
public final boolean isSyncMark(int headerstring,
int syncmode,
int word)
readbits
public final int readbits(int num)
close
public void close()
throws java.io.IOException
- Description of the Method
- Throws:
java.io.IOException
- Description of Exception
readFrame
public Header readFrame()
throws java.io.IOException
- Reads and parses the next frame from the input source.
- Returns:
- the Header describing details of the frame read, or null if the end of the stream has been reached.
- Throws:
java.io.IOException
- Description of Exception
unreadFrame
public final void unreadFrame()
throws java.io.IOException
- Unreads the bytes read from the frame.
- Throws:
java.io.IOException
- Description of ExceptionBitstreamException
-
closeFrame
public void closeFrame()
- Description of the Method
JavaZOOM 1999-2005