Package com.igormaznitsa.jbbp.io
Interface JBBPCountableBitStream
- All Known Implementing Classes:
JBBPBitInputStream,JBBPBitOutputStream
public interface JBBPCountableBitStream
The Interface describes a stream which can manipulate bits and count number of bytes.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionintGet the inside stream a bit buffer.Get the bit order for the stream.intGet the number of bits cached in the bit buffer.longGet the number of bytes passed from the stream.voidReset the inside byte counter of the stream, inside bit buffer will be reset.
-
Method Details
-
getCounter
long getCounter()Get the number of bytes passed from the stream.- Returns:
- the number of passed bytes
-
getBitOrder
JBBPBitOrder getBitOrder()Get the bit order for the stream.- Returns:
- the bit order
- See Also:
-
resetCounter
void resetCounter()Reset the inside byte counter of the stream, inside bit buffer will be reset. -
getBitBuffer
int getBitBuffer()Get the inside stream a bit buffer.- Returns:
- the value from inside the stream bit buffer
-
getBufferedBitsNumber
int getBufferedBitsNumber()Get the number of bits cached in the bit buffer.- Returns:
- the number of bits cached in the stream bit buffer
-