Class Base64SnapshotSerializer
java.lang.Object
au.com.origin.snapshots.serializers.v1.Base64SnapshotSerializer
- All Implemented Interfaces:
SnapshotSerializer,BiFunction<Object,SnapshotSerializerContext, Snapshot>
- Direct Known Subclasses:
Base64SnapshotSerializer
This Serializer converts a byte[] into a base64 encoded string. If the input is not a byte[] it
will be converted using `.getBytes(StandardCharsets.UTF_8)` method
-
Constructor Details
-
Base64SnapshotSerializer
public Base64SnapshotSerializer()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<Object,SnapshotSerializerContext, Snapshot>
-
getOutputFormat
- Specified by:
getOutputFormatin interfaceSnapshotSerializer
-