public final class NamingLookupResponseCodec extends Object implements Codec<NamingLookupResponse>
Constructor and Description |
---|
NamingLookupResponseCodec(IdentifierFactory factory)
Constructs a naming lookup response codec.
|
Modifier and Type | Method and Description |
---|---|
NamingLookupResponse |
decode(byte[] buf)
Decodes bytes to an iterable of name assignments.
|
byte[] |
encode(NamingLookupResponse obj)
Encodes name assignments to bytes.
|
@Inject public NamingLookupResponseCodec(IdentifierFactory factory)
factory
- the identifier factorypublic byte[] encode(NamingLookupResponse obj)
encode
in interface Encoder<NamingLookupResponse>
obj
- the naming lookup responsepublic NamingLookupResponse decode(byte[] buf)
decode
in interface Decoder<NamingLookupResponse>
buf
- the byte arrayNamingRuntimeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.