public class BsonUuidSerializer extends BsonSerializer<java.util.UUID>
| Constructor and Description |
|---|
BsonUuidSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(java.util.UUID value,
BsonGenerator bgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
Serialize the given object using the given BsonGenerator
|
protected static byte[] |
uuidToLittleEndianBytes(java.util.UUID uuid)
Utility routine for converting UUIDs to bytes in little endian format.
|
serializepublic void serialize(java.util.UUID value,
BsonGenerator bgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws java.io.IOException
BsonSerializerserialize in class BsonSerializer<java.util.UUID>value - The object to serializebgen - The generator to serialize toprovider - The serialization providerjava.io.IOException - If an error occurred writing to the streamcom.fasterxml.jackson.core.JsonProcessingException - If a JSON error occurredprotected static byte[] uuidToLittleEndianBytes(java.util.UUID uuid)
uuid - The UUID to convert