Package io.activej.serializer.util
Class RecordSerializer
java.lang.Object
io.activej.serializer.util.RecordSerializer
- All Implemented Interfaces:
WithInitializer<RecordSerializer>,BinarySerializer<Record>
public final class RecordSerializer
extends Object
implements BinarySerializer<Record>, WithInitializer<RecordSerializer>
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecordSerializercreate(RecordScheme scheme) decode(BinaryInput in) voidencode(BinaryOutput out, Record record) withField(String field, BinarySerializer<?> fieldSerializer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.serializer.BinarySerializer
decode, encodeMethods inherited from interface io.activej.codegen.util.WithInitializer
withInitializer, withInitializer
-
Method Details
-
create
-
withField
-
encode
- Specified by:
encodein interfaceBinarySerializer<Record>
-
decode
- Specified by:
decodein interfaceBinarySerializer<Record>- Throws:
CorruptedDataException
-