📄 mapmessage.java
字号:
Object getObject(String name) throws JMSException; /** Returns an <CODE>Enumeration</CODE> of all the names in the * <CODE>MapMessage</CODE> object. * * @return an enumeration of all the names in this <CODE>MapMessage</CODE> * * @exception JMSException if the JMS provider fails to read the message * due to some internal error. */ Enumeration getMapNames() throws JMSException; /** Sets a <CODE>boolean</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>boolean</CODE> * @param value the <CODE>boolean</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setBoolean(String name, boolean value) throws JMSException; /** Sets a <CODE>byte</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>byte</CODE> * @param value the <CODE>byte</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setByte(String name, byte value) throws JMSException; /** Sets a <CODE>short</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>short</CODE> * @param value the <CODE>short</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setShort(String name, short value) throws JMSException; /** Sets a Unicode character value with the specified name into the Map. * * @param name the name of the Unicode character * @param value the Unicode character value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setChar(String name, char value) throws JMSException; /** Sets an <CODE>int</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>int</CODE> * @param value the <CODE>int</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setInt(String name, int value) throws JMSException; /** Sets a <CODE>long</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>long</CODE> * @param value the <CODE>long</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setLong(String name, long value) throws JMSException; /** Sets a <CODE>float</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>float</CODE> * @param value the <CODE>float</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setFloat(String name, float value) throws JMSException; /** Sets a <CODE>double</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>double</CODE> * @param value the <CODE>double</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setDouble(String name, double value) throws JMSException; /** Sets a <CODE>String</CODE> value with the specified name into the Map. * * @param name the name of the <CODE>String</CODE> * @param value the <CODE>String</CODE> value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setString(String name, String value) throws JMSException; /** Sets a byte array value with the specified name into the Map. * * @param name the name of the byte array * @param value the byte array value to set in the Map; the array * is copied so that the value for <CODE>name</CODE> will * not be altered by future modifications * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception NullPointerException if the name is null, or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setBytes(String name, byte[] value) throws JMSException; /** Sets a portion of the byte array value with the specified name into the * Map. * * @param name the name of the byte array * @param value the byte array value to set in the Map * @param offset the initial offset within the byte array * @param length the number of bytes to use * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setBytes(String name, byte[] value, int offset, int length) throws JMSException; /** Sets an object value with the specified name into the Map. * * <P>This method works only for the objectified primitive * object types (<code>Integer</code>, <code>Double</code>, * <code>Long</code> ...), <code>String</code> objects, and byte * arrays. * * @param name the name of the Java object * @param value the Java object value to set in the Map * * @exception JMSException if the JMS provider fails to write the message * due to some internal error. * @exception IllegalArgumentException if the name is null or if the name is * an empty string. * @exception MessageFormatException if the object is invalid. * @exception MessageNotWriteableException if the message is in read-only * mode. */ void setObject(String name, Object value) throws JMSException; /** Indicates whether an item exists in this <CODE>MapMessage</CODE> object. * * @param name the name of the item to test * * @return true if the item exists * * @exception JMSException if the JMS provider fails to determine if the * item exists due to some internal error. */ boolean itemExists(String name) throws JMSException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -