@Override
  public void writeBoolean(boolean v) throws IOException {
    write(v ? 1 : 0);
  }
Writes a <code>boolean</code> value to this output stream. If the argument <code>v</code> is
<code>true</code>, the value <code>(byte)1</code> is written; if <code>v</code> is
<code>false</code>, the value <code>(byte)0</code> is written. The byte written by this method
may be read by the <code>readBoolean</code> method of interface <code>DataInput</code>, which
will then return a <code>boolean</code> equal to <code>v</code>.

@param v the boolean to be written.
@exception IOException if an I/O error occurs.
geode-core/src/main/java/org/apache/geode/internal/tcp/MsgOutputStream.java