Class ByteArrayDeserializer
- java.lang.Object
-
- org.eclipse.yasson.internal.serializer.AbstractItem<T>
-
- org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer<T>
-
- org.eclipse.yasson.internal.serializer.AbstractArrayDeserializer<byte[]>
-
- org.eclipse.yasson.internal.serializer.ByteArrayDeserializer
-
- All Implemented Interfaces:
javax.json.bind.serializer.JsonbDeserializer<byte[]>
,RuntimeTypeInfo
,CurrentItem<byte[]>
,EmbeddedItem
public class ByteArrayDeserializer extends AbstractArrayDeserializer<byte[]>
Array unmarshaller item implementation for small int.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ByteArrayDeserializer(DeserializerBuilder builder)
Creates new instance of byte array deserializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getInstance(Unmarshaller unmarshaller)
Creates and initializes an instance of deserializing item.protected java.util.List<?>
getItems()
Returns list of deserialized items.-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractArrayDeserializer
appendResult, deserializeNext, moveToFirst
-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractContainerDeserializer
convertNullToOptionalEmpty, deserialize, deserializeInternal, newCollectionOrMapItem, newUnmarshallerItemBuilder
-
Methods inherited from class org.eclipse.yasson.internal.serializer.AbstractItem
getClassModel, getRuntimeType, getWrapper
-
-
-
-
Constructor Detail
-
ByteArrayDeserializer
protected ByteArrayDeserializer(DeserializerBuilder builder)
Creates new instance of byte array deserializer.- Parameters:
builder
- deserializer builder
-
-
Method Detail
-
getItems
protected java.util.List<?> getItems()
Description copied from class:AbstractArrayDeserializer
Returns list of deserialized items.- Specified by:
getItems
in classAbstractArrayDeserializer<byte[]>
- Returns:
- list of items
-
getInstance
public byte[] getInstance(Unmarshaller unmarshaller)
Description copied from class:AbstractContainerDeserializer
Creates and initializes an instance of deserializing item.- Specified by:
getInstance
in classAbstractContainerDeserializer<byte[]>
- Parameters:
unmarshaller
- Current deserialization context.- Returns:
- An instance of deserializing item.
-
-