code: public void flush() throws IOException {
          for (int i = curBit; i < 8; i++) {
              curByte[i] = 0;
          }
          curBit = 0;
          writeCurByte();
      }
docs: /*
  (non-Javadoc)
  
  @see ua.org.jplayer.javcodec.h264.H264BitOutputStream#flush()