Class ProtobufAdapterFactory

java.lang.Object
com.github.mizosoft.methanol.adapter.protobuf.ProtobufAdapterFactory

public class ProtobufAdapterFactory extends Object
Contains static factory methods for Protocol Buffers adapters.
  • Method Details

    • createEncoder

      public static BodyAdapter.Encoder createEncoder()
      Creates an encoder.
    • createDecoder

      public static BodyAdapter.Decoder createDecoder()
      Creates a decoder with an empty extension registry.
    • createDecoder

      public static BodyAdapter.Decoder createDecoder(com.google.protobuf.ExtensionRegistryLite registry)
      Creates a decoder with the given extension registry.