Package com.backblaze.b2.json
Class B2JsonUtil
- java.lang.Object
-
- com.backblaze.b2.json.B2JsonUtil
-
public class B2JsonUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description B2JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
deserializeMaybeNull(B2JsonTypeHandler<T> handler, B2JsonReader in, B2JsonOptions options)
Deserialize an object that may be null.static <T> void
serializeMaybeNull(B2JsonTypeHandler<T> handler, T obj, B2JsonWriter out, B2JsonOptions options)
Serialize an object that may be null.
-
-
-
Method Detail
-
serializeMaybeNull
public static <T> void serializeMaybeNull(B2JsonTypeHandler<T> handler, T obj, B2JsonWriter out, B2JsonOptions options) throws java.io.IOException, B2JsonException
Serialize an object that may be null.- Throws:
java.io.IOException
B2JsonException
-
deserializeMaybeNull
public static <T> T deserializeMaybeNull(B2JsonTypeHandler<T> handler, B2JsonReader in, B2JsonOptions options) throws B2JsonException, java.io.IOException
Deserialize an object that may be null.- Throws:
B2JsonException
java.io.IOException
-
-