java.lang.Object
de.haumacher.msgbuf.json.JsonUtil
Utilities for reading and writing JSON.
- Author:
- Bernhard Haumacher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Reads a byte array or anullvalue from the given reader.static StringReads a string or anullvalue from the given reader.static voidwriteBinaryOptional(JsonWriter out, byte[] value) Writes the given byte array as Base64 encoded string.
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
nextStringOptional
Reads a string or anullvalue from the given reader.- Throws:
IOException
-
nextBinaryOptional
Reads a byte array or anullvalue from the given reader.- Throws:
IOException
-
writeBinaryOptional
Writes the given byte array as Base64 encoded string.- Throws:
IOException
-