public void flush(){
  while (current > 1) {
    writeBit(0);
  }
  try {
    out.flush();
  }
 catch (  IOException e) {
    throw new IllegalStateException(e);
  }
}

public void flush ( ) { while ( current > 1 ) { writeBit ( 0 ) ; } try { out . flush ( ) ; } catch ( IOException e ) { throw new IllegalStateException ( e ) ; } }
flush the stream . this will at write at most 7 ' 0 ' bits . this will also flush the underlying stream .
