Interface JSONCodec<T>

Type Parameters:
T - Normalized value type
All Superinterfaces:
TypeAwareCodec<T,Object,com.google.gson.stream.JsonWriter>

public sealed interface JSONCodec<T> extends TypeAwareCodec<T,Object,com.google.gson.stream.JsonWriter>
A codec capable of performing normalized value conversion with a JsonWriter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeValue(com.google.gson.stream.JsonWriter ctx, T value)
    Serialize specified value with specified JsonWriter.

    Methods inherited from interface org.opendaylight.yangtools.yang.data.util.codec.TypeAwareCodec

    getDataType, parseValue
  • Method Details

    • writeValue

      void writeValue(com.google.gson.stream.JsonWriter ctx, T value) throws IOException
      Serialize specified value with specified JsonWriter..
      Specified by:
      writeValue in interface TypeAwareCodec<T,Object,com.google.gson.stream.JsonWriter>
      Parameters:
      ctx - Write context
      value - Value in native format
      Throws:
      IOException - if the write fails