public class JsonUtil extends Object
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
nextBinaryOptional(JsonReader in)
Reads a byte array or a
null value from the given reader. |
static String |
nextStringOptional(JsonReader in)
Reads a string or a
null value from the given reader. |
static void |
writeBinaryOptional(JsonWriter out,
byte[] value)
Writes the given byte array as Base64 encoded string.
|
public static String nextStringOptional(JsonReader in) throws IOException
null value from the given reader.IOExceptionpublic static byte[] nextBinaryOptional(JsonReader in) throws IOException
null value from the given reader.IOExceptionpublic static void writeBinaryOptional(JsonWriter out, byte[] value) throws IOException
IOExceptionCopyright © 2021. All rights reserved.