public void write(byte[] bytes,int start,int length) throws IOException {
  flushBits();
  if (bytes != null && length > 0) {
    out.write(bytes,start,length);
    bytesWritten+=length;
  }
}

public void write ( byte [ ] bytes , int start , int length ) throws IOException { flushBits ( ) ; if ( bytes != null && length > 0 ) { out . write ( bytes , start , length ) ; bytesWritten += length ; } }
write the given bytes to the output stream
