Package io.apicurio.registry.serde
Class Default4ByteIdHandler
java.lang.Object
io.apicurio.registry.serde.Default4ByteIdHandler
- All Implemented Interfaces:
IdHandler
- Direct Known Subclasses:
OptimisticFallbackIdHandler
IdHandler that assumes 4 bytes for the magic number (the ID).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintidSize()readId(ByteBuffer buffer) voidwriteId(ArtifactReference reference, OutputStream out) voidwriteId(ArtifactReference reference, ByteBuffer buffer)
-
Field Details
-
idOption
-
-
Constructor Details
-
Default4ByteIdHandler
public Default4ByteIdHandler()
-
-
Method Details
-
configure
-
writeId
- Specified by:
writeIdin interfaceIdHandler- Throws:
IOException
-
writeId
-
readId
-
idSize
public int idSize()
-