Name
StreamMessage
Synopsis
A StreamMessage
is a Message
whose body consists of a stream of
serialized Java primitive data items. It is similar in many ways to a
BytesMessage
, except that the contents of a StreamMessage
are read in
the same order that they are written by the sender. Otherwise, the
StreamMessage
has a similar set of read/write methods, and similar
rules about how certain data types are read from the message, as the
BytesMessage
.
public interface StreamMessage extends javax.jms.Message { // Public Instance Methods public abstract boolean readBoolean() throws JMSException; public abstract byte readByte() throws JMSException; public abstract int readBytes( byte[] value) throws JMSException; public abstract char readChar() throws JMSException; public abstract double readDouble() throws JMSException; public abstract float readFloat() throws JMSException; public abstract int readInt() throws JMSException; public abstract long readLong() throws JMSException; public abstract Object readObject() throws JMSException; public abstract short readShort() throws JMSException; public abstract String readString() throws JMSException; public abstract void reset() throws JMSException; public abstract void writeBoolean( boolean value) throws JMSException; public abstract void writeByte( byte value) throws JMSException; public abstract void writeBytes( byte[] value) throws JMSException; ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.