Class BufferedImageByteBufferConverter
- java.lang.Object
-
- org.datanucleus.store.types.converters.BufferedImageByteBufferConverter
-
- All Implemented Interfaces:
Serializable
,TypeConverter<BufferedImage,ByteBuffer>
public class BufferedImageByteBufferConverter extends Object implements TypeConverter<BufferedImage,ByteBuffer>
Convenience class to handle Java serialisation of a BufferedImage object to/from ByteBuffer.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BufferedImageByteBufferConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
toDatastoreType(BufferedImage memberValue)
Method to convert the passed member value to the datastore type.BufferedImage
toMemberType(ByteBuffer datastoreValue)
Method to convert the passed datastore value to the member type.
-
-
-
Method Detail
-
toDatastoreType
public ByteBuffer toDatastoreType(BufferedImage memberValue)
Description copied from interface:TypeConverter
Method to convert the passed member value to the datastore type.- Specified by:
toDatastoreType
in interfaceTypeConverter<BufferedImage,ByteBuffer>
- Parameters:
memberValue
- Value from the member- Returns:
- Value for the datastore
-
toMemberType
public BufferedImage toMemberType(ByteBuffer datastoreValue)
Description copied from interface:TypeConverter
Method to convert the passed datastore value to the member type.- Specified by:
toMemberType
in interfaceTypeConverter<BufferedImage,ByteBuffer>
- Parameters:
datastoreValue
- Value from the datastore- Returns:
- Value for the member
-
-