com.alibaba.dubbo.remoting
Interface Codec

All Known Implementing Classes:
DecodeableRpcInvocation, DecodeableRpcResult

Deprecated.

@Deprecated
@SPI
public interface Codec

Codec. (SPI, Singleton, ThreadSafe)

Author:
qianlei, ding.lid, william.liangf

Field Summary
static Object NEED_MORE_INPUT
          Deprecated. Need more input poison.
 
Method Summary
 Object decode(Channel channel, InputStream input)
          Deprecated. Decode message.
 void encode(Channel channel, OutputStream output, Object message)
          Deprecated. Encode message.
 

Field Detail

NEED_MORE_INPUT

static final Object NEED_MORE_INPUT
Deprecated. 
Need more input poison.

See Also:
decode(Channel, InputStream)
Method Detail

encode

@Adaptive(value="codec")
void encode(Channel channel,
                          OutputStream output,
                          Object message)
            throws IOException
Deprecated. 
Encode message.

Parameters:
channel - channel.
output - output stream.
message - message.
Throws:
IOException

decode

@Adaptive(value="codec")
Object decode(Channel channel,
                            InputStream input)
              throws IOException
Deprecated. 
Decode message.

Parameters:
channel - channel.
input - input stream.
Returns:
message or NEED_MORE_INPUT poison.
Throws:
IOException
See Also:
NEED_MORE_INPUT


Copyright © 2012–2017 Alibaba. All rights reserved.