/** * Writes a <code>long</code> to the stream message. * * @param value the <code>long</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 writeLong(long value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalLong(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalInt(out, ((Integer)value).intValue()); } else if (value.getClass() == Long.class) { marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue());
/** * Writes a <code>long</code> to the stream message. * * @param value the <code>long</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 writeLong(long value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalLong(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>long</code> to the stream message. * * @param value the <code>long</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 writeLong(long value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalLong(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>long</code> to the stream message. * * @param value the <code>long</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 writeLong(long value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalLong(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>long</code> to the stream message. * * @param value the <code>long</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 writeLong(long value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalLong(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalInt(out, ((Integer)value).intValue()); } else if (value.getClass() == Long.class) { marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue());
marshalInt(out, ((Integer)value).intValue()); } else if (value.getClass() == Long.class) { marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue());
marshalInt(out, ((Integer)value).intValue()); } else if (value.getClass() == Long.class) { marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue());
marshalInt(out, ((Integer)value).intValue()); } else if (value.getClass() == Long.class) { marshalLong(out, ((Long)value).longValue()); } else if (value.getClass() == Float.class) { marshalFloat(out, ((Float)value).floatValue());
break; case DataConstants.LONG: MarshallingSupport.marshalLong(dataOut, buffer.readLong()); break; case DataConstants.SHORT: