Class ByteArrayEncoder
java.lang.Object
com.inductiveautomation.eventstream.gateway.encoding.ByteArrayEncoder
- All Implemented Interfaces:
EventStreamEncoder
Encodes an Object to byte[]. Encoders are used during GatewayEventStreamExpression evaluation,
so ByteArrayEncoder must be as complete as possible. Byte[] is a common encoding for Handlers to transmit
data.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.eventstream.encoder.EventStreamEncoder
EventStreamEncoder.Config, EventStreamEncoder.Descriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.inductiveautomation.ignition.common.gson.JsonObject
static EventStreamEncoder.Config
createConfig
(@Nullable String encoding) Convertsdata
to another type defined by theEventStreamEncoder
.
-
Field Details
-
FACTORY
-
BASE_64_ENCODING
- See Also:
-
-
Constructor Details
-
ByteArrayEncoder
-
-
Method Details
-
config
-
createConfig
-
encode
Description copied from interface:EventStreamEncoder
Convertsdata
to another type defined by theEventStreamEncoder
. Supported input types should always include the PyObject equivalent where possible, since Filter and Transforms will generally be outputting PyObjects.- Specified by:
encode
in interfaceEventStreamEncoder
- Parameters:
data
- Data to encode.- Returns:
- Encoded data
- Throws:
EncoderException
- when it's not possible to encodedata
to theEventStreamEncoder
type.
-