public interface JmsBytesMessageFacade extends JmsMessageFacade
Modifier and Type | Method and Description |
---|---|
JmsBytesMessageFacade |
copy()
Performs a copy of this message facade into a new instance.
|
int |
getBodyLength() |
InputStream |
getInputStream()
Create and return an InputStream instance that can be used to read the contents
of this message.
|
OutputStream |
getOutputStream()
Create and return a new OuputStream used to populate the body of the message.
|
void |
reset()
Reset the message state such that a call to getInputStream or getOutputStream
will succeed.
|
clearBody, clearProperties, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytes
JmsBytesMessageFacade copy() throws javax.jms.JMSException
copy
in interface JmsMessageFacade
javax.jms.JMSException
- if an error occurs while copying the message.InputStream getInputStream() throws javax.jms.JMSException
javax.jms.JMSException
- if an error occurs creating the stream.javax.jms.IllegalStateException
- if there is a current OutputStream in use.OutputStream getOutputStream() throws javax.jms.JMSException
javax.jms.JMSException
- if an error occurs creating the stream.javax.jms.IllegalStateException
- if there is a current OutputStream in use.void reset()
int getBodyLength()
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.