public class UnknownEncodingMessageReader extends Object implements MessageReader
| Constructor and Description |
|---|
UnknownEncodingMessageReader() |
| Modifier and Type | Method and Description |
|---|---|
Encoding |
getEncoding() |
<T extends CloudEventWriter<V>,V> |
read(CloudEventWriterFactory<T,V> writerFactory)
Visit the message as binary encoded event using the provided visitor factory.
|
<T> T |
read(StructuredMessageWriter<T> visitor)
Visit the message as structured encoded event using the provided visitor
|
void |
readAttributes(CloudEventAttributesWriter writer)
Visit the message attributes as binary encoded event using the provided visitor.
|
void |
readExtensions(CloudEventExtensionsWriter visitor)
Visit the message extensions as binary encoded event using the provided visitor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoEvent, visitfrom, frompublic Encoding getEncoding()
getEncoding in interface MessageReaderpublic <T extends CloudEventWriter<V>,V> V read(CloudEventWriterFactory<T,V> writerFactory) throws CloudEventRWException, IllegalStateException
MessageReaderread in interface MessageReaderread in interface CloudEventReaderwriterFactory - a factory that generates a visitor starting from the SpecVersion of the eventCloudEventRWException - if something went wrong during the visit.IllegalStateException - if the message is not in binary encoding.public void readAttributes(CloudEventAttributesWriter writer) throws CloudEventRWException
MessageReaderreadAttributes in interface MessageReaderreadAttributes in interface CloudEventReaderwriter - Attributes visitorCloudEventRWException - if something went wrong during the visit.public void readExtensions(CloudEventExtensionsWriter visitor) throws CloudEventRWException
MessageReaderreadExtensions in interface MessageReaderreadExtensions in interface CloudEventReadervisitor - Extensions visitorCloudEventRWException - if something went wrong during the visit.public <T> T read(StructuredMessageWriter<T> visitor) throws CloudEventRWException, IllegalStateException
MessageReaderread in interface MessageReaderread in interface StructuredMessageReadervisitor - Structured Message visitorCloudEventRWException - if something went wrong during the visit.IllegalStateException - if the message is not in structured encoding.Copyright © 2020. All rights reserved.