/** * Writes a <code>float</code> to the stream message. * * @param value the <code>float</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 writeFloat(float value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalFloat(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue());
/** * Writes a <code>float</code> to the stream message. * * @param value the <code>float</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 writeFloat(float value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalFloat(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>float</code> to the stream message. * * @param value the <code>float</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 writeFloat(float value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalFloat(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>float</code> to the stream message. * * @param value the <code>float</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 writeFloat(float value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalFloat(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>float</code> to the stream message. * * @param value the <code>float</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 writeFloat(float value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalFloat(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue());
marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue());
marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue());
marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue()); } else if (value.getClass() == Double.class) { marshalDouble(out, ((Double)value).doubleValue());
case DataConstants.FLOAT: float floatVal = Float.intBitsToFloat(buffer.readInt()); MarshallingSupport.marshalFloat(dataOut, floatVal); break; case DataConstants.INT: