public static SaslCode valueOf(UnsignedByte v) { return SaslCode.values()[v.byteValue()]; }
public static SaslCode valueOf(UnsignedByte v) { return SaslCode.values()[v.byteValue()]; }
public static SaslCode valueOf(UnsignedByte v) { return SaslCode.values()[v.byteValue()]; }
public void writeValue(final UnsignedByte val) { getEncoder().writeRaw(val.byteValue()); }
public void writeValue(final UnsignedByte val) { getEncoder().writeRaw(val.byteValue()); }
public void writeValue(final UnsignedByte val) { getEncoder().writeRaw(val.byteValue()); }
public void fastWrite(EncoderImpl encoder, UnsignedByte value) { encoder.writeRaw(EncodingCodes.UBYTE); encoder.writeRaw(value.byteValue()); }
public void writeValue(final UnsignedByte val) { getEncoder().writeRaw(val.byteValue()); }
@Override public void setObject(final String name, final Object value) throws JMSException { try { // primitives and String Object val = value; if (value instanceof UnsignedInteger) { val = ((UnsignedInteger) value).intValue(); } else if (value instanceof UnsignedShort) { val = ((UnsignedShort) value).shortValue(); } else if (value instanceof UnsignedByte) { val = ((UnsignedByte) value).byteValue(); } else if (value instanceof UnsignedLong) { val = ((UnsignedLong) value).longValue(); } TypedProperties.setObjectProperty(new SimpleString(name), val, map); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public void setObject(final String name, final Object value) throws JMSException { try { // primitives and String Object val = value; if (value instanceof UnsignedInteger) { val = ((UnsignedInteger) value).intValue(); } else if (value instanceof UnsignedShort) { val = ((UnsignedShort) value).shortValue(); } else if (value instanceof UnsignedByte) { val = ((UnsignedByte) value).byteValue(); } else if (value instanceof UnsignedLong) { val = ((UnsignedLong) value).longValue(); } TypedProperties.setObjectProperty(new SimpleString(name), val, map); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }