private void writeInt(DataOutput out,int val) throws IOException {
  intBuf[0]=(byte)(val >> 24);
  intBuf[1]=(byte)(val >> 16);
  intBuf[2]=(byte)(val >> 8);
  intBuf[3]=(byte)val;
  out.write(intBuf);
}

private void writeInt ( DataOutput out , int val ) throws IOException { intBuf [ 0 ] = ( byte ) ( val > > 24 ) ; intBuf [ 1 ] = ( byte ) ( val > > 16 ) ; intBuf [ 2 ] = ( byte ) ( val > > 8 ) ; intBuf [ 3 ] = ( byte ) val ; out . write ( intBuf ) ; }
write an int value in single write operation .
