public final void writeBoolean(boolean val) throws IOException {
  out.write(val ? 1 : 0);
  written++;
}

public final void writeBoolean ( boolean val ) throws IOException { out . write ( val ? 1 : 0 ) ; written ++ ; }
writes a boolean to the target stream .
