Class JsonUtil

    • Constructor Detail

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • nextBinaryOptional

        public static byte[] nextBinaryOptional​(JsonReader in)
                                         throws IOException
        Reads a byte array or a null value from the given reader.
        Throws:
        IOException
      • writeBinaryOptional

        public static void writeBinaryOptional​(JsonWriter out,
                                               byte[] value)
                                        throws IOException
        Writes the given byte array as Base64 encoded string.
        Throws:
        IOException