|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jms.message.MessageImpl
com.caucho.jms.message.MapMessageImpl
public class MapMessageImpl
A stream message.
| Field Summary |
|---|
| Fields inherited from class com.caucho.jms.message.MessageImpl |
|---|
L, log |
| Fields inherited from interface javax.jms.Message |
|---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
| Constructor Summary | |
|---|---|
MapMessageImpl()
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
bodyToInputStream()
Serialize the body to an input stream. |
void |
clearBody()
Clears the message and puts it into write mode. |
MessageImpl |
copy()
|
protected void |
copy(MapMessageImpl newMsg)
|
boolean |
getBoolean(java.lang.String name)
Get a boolean from the stream. |
byte |
getByte(java.lang.String name)
Get a byte from the stream. |
byte[] |
getBytes(java.lang.String name)
Get a byte array object from the stream. |
int |
getBytes(java.lang.String name,
byte[] value)
Get a byte array object from the stream. |
char |
getChar(java.lang.String name)
Get a character object from the stream. |
double |
getDouble(java.lang.String name)
Get a double from the stream. |
float |
getFloat(java.lang.String name)
Get a float from the stream. |
int |
getInt(java.lang.String name)
Get an integer from the stream. |
long |
getLong(java.lang.String name)
Get a long from the stream. |
java.util.Enumeration |
getMapNames()
Returns an enumeration of the map names. |
java.lang.Object |
getObject(java.lang.String name)
Gets the next object. |
short |
getShort(java.lang.String name)
Get a short from the stream. |
java.lang.String |
getString(java.lang.String name)
Get a string from the stream. |
MessageType |
getType()
Returns the type enumeration. |
boolean |
itemExists(java.lang.String name)
Returns true if the object exists. |
void |
readBody(java.io.InputStream is)
Read the body from an input stream. |
void |
setBoolean(java.lang.String name,
boolean b)
Sets a boolean to the stream. |
void |
setByte(java.lang.String name,
byte b)
Sets a byte to the stream. |
void |
setBytes(java.lang.String name,
byte[] buf)
Sets a byte array to the stream. |
void |
setBytes(java.lang.String name,
byte[] buf,
int offset,
int length)
Sets a byte array to the stream. |
void |
setChar(java.lang.String name,
char ch)
Sets a character to the stream. |
void |
setDouble(java.lang.String name,
double d)
Sets a double to the stream. |
void |
setFloat(java.lang.String name,
float f)
Sets a float to the stream. |
void |
setInt(java.lang.String name,
int i)
Sets an integer to the stream. |
void |
setLong(java.lang.String name,
long l)
Sets a long to the stream. |
void |
setObject(java.lang.String name,
java.lang.Object obj)
Sets the next object. |
void |
setShort(java.lang.String name,
short s)
Sets a short to the stream. |
void |
setString(java.lang.String name,
java.lang.String s)
Sets a string to the stream. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapMessageImpl()
| Method Detail |
|---|
public MessageType getType()
getType in class MessageImpl
public boolean itemExists(java.lang.String name)
throws JMSException
itemExists in interface MapMessageJMSException
public java.util.Enumeration getMapNames()
throws JMSException
getMapNames in interface MapMessageJMSException
public boolean getBoolean(java.lang.String name)
throws JMSException
getBoolean in interface MapMessageJMSException
public byte getByte(java.lang.String name)
throws JMSException
getByte in interface MapMessageJMSException
public short getShort(java.lang.String name)
throws JMSException
getShort in interface MapMessageJMSException
public int getInt(java.lang.String name)
throws JMSException
getInt in interface MapMessageJMSException
public long getLong(java.lang.String name)
throws JMSException
getLong in interface MapMessageJMSException
public float getFloat(java.lang.String name)
throws JMSException
getFloat in interface MapMessageJMSException
public double getDouble(java.lang.String name)
throws JMSException
getDouble in interface MapMessageJMSException
public char getChar(java.lang.String name)
throws JMSException
getChar in interface MapMessageJMSException
public java.lang.String getString(java.lang.String name)
throws JMSException
getString in interface MapMessageJMSException
public byte[] getBytes(java.lang.String name)
throws JMSException
getBytes in interface MapMessageJMSException
public int getBytes(java.lang.String name,
byte[] value)
throws JMSException
JMSException
public java.lang.Object getObject(java.lang.String name)
throws JMSException
getObject in interface MapMessageJMSException
public void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class MessageImplJMSException
public void setBoolean(java.lang.String name,
boolean b)
throws JMSException
setBoolean in interface MapMessageJMSException
public void setByte(java.lang.String name,
byte b)
throws JMSException
setByte in interface MapMessageJMSException
public void setShort(java.lang.String name,
short s)
throws JMSException
setShort in interface MapMessageJMSException
public void setInt(java.lang.String name,
int i)
throws JMSException
setInt in interface MapMessageJMSException
public void setLong(java.lang.String name,
long l)
throws JMSException
setLong in interface MapMessageJMSException
public void setFloat(java.lang.String name,
float f)
throws JMSException
setFloat in interface MapMessageJMSException
public void setDouble(java.lang.String name,
double d)
throws JMSException
setDouble in interface MapMessageJMSException
public void setString(java.lang.String name,
java.lang.String s)
throws JMSException
setString in interface MapMessageJMSException
public void setChar(java.lang.String name,
char ch)
throws JMSException
setChar in interface MapMessageJMSException
public void setBytes(java.lang.String name,
byte[] buf)
throws JMSException
setBytes in interface MapMessageJMSException
public void setBytes(java.lang.String name,
byte[] buf,
int offset,
int length)
throws JMSException
setBytes in interface MapMessageJMSException
public void setObject(java.lang.String name,
java.lang.Object obj)
throws JMSException
setObject in interface MapMessageJMSExceptionpublic MessageImpl copy()
copy in class MessageImplprotected void copy(MapMessageImpl newMsg)
public java.io.InputStream bodyToInputStream()
throws java.io.IOException
bodyToInputStream in class MessageImpljava.io.IOException
public void readBody(java.io.InputStream is)
throws java.io.IOException,
JMSException
readBody in class MessageImpljava.io.IOException
JMSExceptionpublic java.lang.String toString()
toString in class MessageImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||