Class Encoding
-
- All Implemented Interfaces:
public final class Encoding
Default encoding values used by Zenoh.
An encoding has a similar role to Content-type in HTTP: it indicates, when present, how data should be interpreted by the application.
Please note the Zenoh protocol does not impose any encoding value, nor it operates on it. It can be seen as some optional metadata that is carried over by Zenoh in such a way the application may perform different operations depending on the encoding value.
A set of associated constants are provided to cover the most common encodings for user convenience. This is particularly useful in helping Zenoh to perform additional network optimizations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Encoding.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static Encoding.Companion
Companion
-
-
-
Method Detail
-
withSchema
final Encoding withSchema(String schema)
Set a schema to this encoding. Zenoh does not define what a schema is and its semantics is left to the implementer. E.g. a common schema for
text/plain
encoding isutf-8
.
-
-