Interface UTF8Encoder
-
public interface UTF8Encoder
Interface for an external UTF8 Encoder that can be supplied by a client which implements custom encoding logic optimized for the application using the Codec.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtonBuffer
encodeUTF8(ProtonBuffer buffer, CharSequence sequence)
Encodes the given sequence of characters in UTF8 to the given buffer.
-
-
-
Method Detail
-
encodeUTF8
ProtonBuffer encodeUTF8(ProtonBuffer buffer, CharSequence sequence)
Encodes the given sequence of characters in UTF8 to the given buffer.- Parameters:
buffer
- A ProtonBuffer where the UTF-8 encoded bytes should be written.sequence
- ACharSequence
representing the UTF-8 bytes to encode- Returns:
- a reference to the encoding buffer for chaining
-
-