public void flush(){
  clearBuffer();
  try {
    out.flush();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

public void flush ( ) { clearBuffer ( ) ; try { out . flush ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
flushes the binary output stream , padding 0s if number of bits written so far is not a multiple of 8 .
