ByteBuffer directly to and from byte[] ByteBuffer directly to and from byte[]s and indirectly
to any type that the ConversionService support via byte[].
| Modifier and Type | Field and Description |
|---|---|
| private static final TypeDescriptor | |
| private static final TypeDescriptor | |
| private final ConversionService | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | convert(Object
the source object to convert (may be source, TypeDescriptor null)the type descriptor of the field we are converting from sourceType, TypeDescriptor the type descriptor of the field we are converting to targetType)Implements org. Convert the source object to the targetType described by the |
| private Object | |
| private Object | |
| public Set | getConvertibleTypes()
Implements org. Return the source and target types that this converter can convert between. |
| public boolean | matches(TypeDescriptor
the type descriptor of the field we are converting from sourceType, TypeDescriptor the type descriptor of the field we are converting to targetType)Implements org. Should the conversion from |
| private boolean | |
| private boolean |
| BYTE_ARRAY_TYPE | back to summary |
|---|---|
| private static final TypeDescriptor BYTE_ARRAY_TYPE | |
| BYTE_BUFFER_TYPE | back to summary |
|---|---|
| private static final TypeDescriptor BYTE_BUFFER_TYPE | |
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| CONVERTIBLE_PAIRS | back to summary |
|---|---|
| private static final Set<GenericConverter. | |
| ByteBufferConverter | back to summary |
|---|---|
| public ByteBufferConverter(ConversionService conversionService) | |
| convert | back to summary |
|---|---|
| public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Implements org. Doc from org. Convert the source object to the targetType described by the
| |
| convertFromByteBuffer | back to summary |
|---|---|
private Object convertFromByteBuffer(ByteBuffer source, TypeDescriptor targetType)
| |
| convertToByteBuffer | back to summary |
|---|---|
| private Object convertToByteBuffer(Object source, TypeDescriptor sourceType) | |
| getConvertibleTypes | back to summary |
|---|---|
| public Set Implements org. Doc from org. Return the source and target types that this converter can convert between. Each entry is a convertible source-to-target type pair. For
| |
| matches | back to summary |
|---|---|
| public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) Implements org. Doc from org. Should the conversion from
| |
| matchesFromByteBuffer | back to summary |
|---|---|
| private boolean matchesFromByteBuffer(TypeDescriptor targetType) | |
| matchesToByteBuffer | back to summary |
|---|---|
| private boolean matchesToByteBuffer(TypeDescriptor sourceType) | |