java.lang.Object
net.i2p.router.naming.BlockfileNamingService.DestEntrySerializerV4
- All Implemented Interfaces:
Serializer<BlockfileNamingService.DestEntry>
- Enclosing class:
BlockfileNamingService
private static class BlockfileNamingService.DestEntrySerializerV4extends Object implements Serializer<BlockfileNamingService.DestEntry>
For multiple destinations per hostname.
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWrites and reads one entry of the older 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
DestEntrySerializerV4
private DestEntrySerializerV4()Writes and reads one entry of the older 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