public class MessageBodyReader<T> extends java.lang.Object implements SourceReader<org.apache.activemq.artemis.api.core.client.ClientMessage,T>
MessageBodyWriter
Constructor and Description |
---|
MessageBodyReader(SourceReader<java.io.InputStream,T> deserializer)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
read(org.apache.activemq.artemis.api.core.client.ClientMessage source)
Reads a
T -value from the data source. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
uncheckedRead
public MessageBodyReader(SourceReader<java.io.InputStream,T> deserializer)
deserializer
- the deserializer to use.java.lang.NullPointerException
- if the argument is null
.public T read(org.apache.activemq.artemis.api.core.client.ClientMessage source) throws java.lang.Exception
SourceReader
T
-value from the data source.read
in interface SourceReader<org.apache.activemq.artemis.api.core.client.ClientMessage,T>
source
- the data source.java.lang.NullPointerException
- if the argument is null
.java.lang.Exception
- if the value could not be read.