java.lang.Object
net.i2p.router.naming.BlockfileNamingService.DestEntrySerializer
- All Implemented Interfaces:
Serializer<BlockfileNamingService.DestEntry>
- Enclosing class:
BlockfileNamingService
private static class BlockfileNamingService.DestEntrySerializerextends Object implements Serializer<BlockfileNamingService.DestEntry>
Used for the values in the addressbook skiplists Take care not to throw on any error. This means that some things will fail with no indication other than the log, but if we threw a RuntimeException we would prevent access to entries later in the SkipSpan.
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWrites and reads one entry of the current format.Method Summary
All MethodsModifier and TypeMethodDescriptionconstruct(byte[] b) Deserialize an entry value into a destination and its properties, null on malformed data.byte[]o).
Constructor Details
DestEntrySerializer
private DestEntrySerializer()Writes and reads one entry of the current format.
Method Details
getBytes
Description copied from interface:Serializero).- Specified by:
getBytesin interfaceSerializer<BlockfileNamingService.DestEntry>- Parameters:
de- the object to serialize- Returns:
- the given object's serialized form as a byte array
construct
Deserialize an entry value into a destination and its properties, null on malformed data.- Specified by:
constructin interfaceSerializer<BlockfileNamingService.DestEntry>- Parameters:
b- the serialized bytes to read back- Returns:
- the deserialized object