/** * Writes a <code>double</code> to the stream message. * * @param value the <code>double</code> value to be written * @throws JMSException if the JMS provider fails to write the message due * to some internal error. * @throws MessageNotWriteableException if the message is in read-only mode. */ @Override public void writeDouble(double value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalDouble(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue()); } else if (value.getClass() == byte[].class) { marshalByteArray(out, (byte[])value);
/** * Writes a <code>double</code> to the stream message. * * @param value the <code>double</code> value to be written * @throws JMSException if the JMS provider fails to write the message due * to some internal error. * @throws MessageNotWriteableException if the message is in read-only mode. */ @Override public void writeDouble(double value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalDouble(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>double</code> to the stream message. * * @param value the <code>double</code> value to be written * @throws JMSException if the JMS provider fails to write the message due * to some internal error. * @throws MessageNotWriteableException if the message is in read-only mode. */ @Override public void writeDouble(double value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalDouble(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>double</code> to the stream message. * * @param value the <code>double</code> value to be written * @throws JMSException if the JMS provider fails to write the message due * to some internal error. * @throws MessageNotWriteableException if the message is in read-only mode. */ public void writeDouble(double value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalDouble(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>double</code> to the stream message. * * @param value the <code>double</code> value to be written * @throws JMSException if the JMS provider fails to write the message due * to some internal error. * @throws MessageNotWriteableException if the message is in read-only mode. */ @Override public void writeDouble(double value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalDouble(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue()); } else if (value.getClass() == byte[].class) { marshalByteArray(out, (byte[])value);
marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue()); } else if (value.getClass() == byte[].class) { marshalByteArray(out, (byte[])value);
marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue()); } else if (value.getClass() == byte[].class) { marshalByteArray(out, (byte[])value);
marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue()); } else if (value.getClass() == byte[].class) { marshalByteArray(out, (byte[])value);
case DataConstants.DOUBLE: double doubleVal = Double.longBitsToDouble(buffer.readLong()); MarshallingSupport.marshalDouble(dataOut, doubleVal); break; case DataConstants.FLOAT: