Package com.dslplatform.json
Class BinaryConverter
- java.lang.Object
-
- com.dslplatform.json.BinaryConverter
-
public abstract class BinaryConverter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]EMPTY_ARRAYstatic JsonReader.ReadObject<byte[]>READERstatic JsonWriter.WriteObject<byte[]>WRITER
-
Constructor Summary
Constructors Constructor Description BinaryConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]deserialize(JsonReader reader)static java.util.ArrayList<byte[]>deserializeCollection(JsonReader reader)static voiddeserializeCollection(JsonReader reader, java.util.Collection<byte[]> res)static java.util.ArrayList<byte[]>deserializeNullableCollection(JsonReader reader)static voiddeserializeNullableCollection(JsonReader reader, java.util.Collection<byte[]> res)(package private) static <T> voidregisterDefault(DslJson<T> json)static voidserialize(byte[] value, JsonWriter sw)
-
-
-
Field Detail
-
READER
public static final JsonReader.ReadObject<byte[]> READER
-
WRITER
public static final JsonWriter.WriteObject<byte[]> WRITER
-
EMPTY_ARRAY
public static final byte[] EMPTY_ARRAY
-
-
Method Detail
-
registerDefault
static <T> void registerDefault(DslJson<T> json)
-
serialize
public static void serialize(@Nullable byte[] value, JsonWriter sw)
-
deserialize
public static byte[] deserialize(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeCollection
public static java.util.ArrayList<byte[]> deserializeCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeCollection
public static void deserializeCollection(JsonReader reader, java.util.Collection<byte[]> res) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeNullableCollection
public static java.util.ArrayList<byte[]> deserializeNullableCollection(JsonReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
deserializeNullableCollection
public static void deserializeNullableCollection(JsonReader reader, java.util.Collection<byte[]> res) throws java.io.IOException
- Throws:
java.io.IOException
-
-