public final void writeDouble(double val) throws IOException {
  writeLong(Double.doubleToLongBits(val));
}

public final void writeDouble ( double val ) throws IOException { writeLong ( Double . doubleToLongBits ( val ) ) ; }
writes a 64 - bit double to the target stream . the resulting output is the eight bytes resulting from calling double . doubletolongbits ( ) .
