Interface ByteEncoder

All Superinterfaces:
AttributeSink, ElementSink, Sink
All Known Implementing Classes:
NetStreamEncoder

public interface ByteEncoder
extends Sink
Define an encoder that transform received events into a binary buffer.

A ByteEncoder is a sink that will produce a ByteBuffer from each received event. Then these buffer can be sent to an end-point using a ByteEncoder.Transport.

This is a generic way to define the encoding of events into bytes buffer. The main protocol used in GraphStream to do such things is NetStream, with is dedicated encoder NetStreamEncoder.

Since:
31/01/16.