/** * Writes a <code>short</code> to the stream message. * * @param value the <code>short</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 writeShort(short value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalShort(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalChar(out, ((Character)value).charValue()); } else if (value.getClass() == Short.class) { marshalShort(out, ((Short)value).shortValue()); } else if (value.getClass() == Integer.class) { marshalInt(out, ((Integer)value).intValue());
/** * Writes a <code>short</code> to the stream message. * * @param value the <code>short</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 writeShort(short value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalShort(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>short</code> to the stream message. * * @param value the <code>short</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 writeShort(short value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalShort(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>short</code> to the stream message. * * @param value the <code>short</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 writeShort(short value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalShort(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
/** * Writes a <code>short</code> to the stream message. * * @param value the <code>short</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 writeShort(short value) throws JMSException { initializeWriting(); try { MarshallingSupport.marshalShort(dataOut, value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
marshalChar(out, ((Character)value).charValue()); } else if (value.getClass() == Short.class) { marshalShort(out, ((Short)value).shortValue()); } else if (value.getClass() == Integer.class) { marshalInt(out, ((Integer)value).intValue());
marshalChar(out, ((Character)value).charValue()); } else if (value.getClass() == Short.class) { marshalShort(out, ((Short)value).shortValue()); } else if (value.getClass() == Integer.class) { marshalInt(out, ((Integer)value).intValue());
marshalChar(out, ((Character)value).charValue()); } else if (value.getClass() == Short.class) { marshalShort(out, ((Short)value).shortValue()); } else if (value.getClass() == Integer.class) { marshalInt(out, ((Integer)value).intValue());
marshalChar(out, ((Character)value).charValue()); } else if (value.getClass() == Short.class) { marshalShort(out, ((Short)value).shortValue()); } else if (value.getClass() == Integer.class) { marshalInt(out, ((Integer)value).intValue());
break; case DataConstants.SHORT: MarshallingSupport.marshalShort(dataOut, buffer.readShort()); break; case DataConstants.STRING: