public void writeDouble ( final double value , final JBBPByteOrder byteOrder ) throws IOException { final long longValue = Double . doubleToLongBits ( value ) ; if ( byteOrder == JBBPByteOrder . BIG_ENDIAN ) { this . writeInt ( ( int ) ( longValue >>> 32 ) , byteOrder ) ; this . writeInt ( ( int ) longValue , byteOrder ) ; } else { this . writeInt ( ( int ) longValue , byteOrder ) ; this . writeInt ( ( int ) ( longValue >>> 32 ) , byteOrder ) ; } }
Write a double value into the output stream .