Class SerializeSupport

java.lang.Object
org.curioswitch.common.protobuf.json.SerializeSupport

public final class SerializeSupport extends Object
  • Method Details

    • printRepeatedSignedInt32

      public static void printRepeatedSignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printSignedInt32

      public static void printSignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedSignedInt64

      public static void printRepeatedSignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printSignedInt64

      public static void printSignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedUnsignedInt32

      public static void printRepeatedUnsignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printUnsignedInt32

      public static void printUnsignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • normalizeUnsignedInt32

      public static long normalizeUnsignedInt32(int value)
    • printRepeatedUnsignedInt64

      public static void printRepeatedUnsignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printUnsignedInt64

      public static void printUnsignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • normalizeUnsignedInt64

      public static String normalizeUnsignedInt64(long value)
    • printRepeatedBool

      public static void printRepeatedBool(List<Boolean> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printBool

      public static void printBool(boolean value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedFloat

      public static void printRepeatedFloat(List<Float> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printFloat

      public static void printFloat(float value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedDouble

      public static void printRepeatedDouble(List<Double> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printDouble

      public static void printDouble(double value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedString

      public static void printRepeatedString(List<String> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printString

      public static void printString(String value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedBytes

      public static void printRepeatedBytes(List<com.google.protobuf.ByteString> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printBytes

      public static void printBytes(com.google.protobuf.ByteString value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedNull

      public static void printRepeatedNull(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printNull

      public static void printNull(int unused, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedEnum

      public static void printRepeatedEnum(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) throws IOException
      Throws:
      IOException
    • printEnum

      public static void printEnum(int value, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) throws IOException
      Throws:
      IOException
    • printEnum

      public static void printEnum(com.google.protobuf.Descriptors.EnumValueDescriptor value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • printRepeatedMessage

      public static <T extends com.google.protobuf.Message> void printRepeatedMessage(List<T> values, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) throws IOException
      Throws:
      IOException
    • printMessage

      public static <T extends com.google.protobuf.Message> void printMessage(T value, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) throws IOException
      Throws:
      IOException
    • serializeString

      public static com.fasterxml.jackson.core.io.SerializedString serializeString(String name)
    • mapIterator

      public static Iterator<? extends Map.Entry<?,?>> mapIterator(Map<?,?> map, boolean sortingMapKeys, boolean stringKey)