com.github.netty.protocol.nrpc.codec.JdkDataCodec Maven / Gradle / Ivy
The newest version!
package com.github.netty.protocol.nrpc.codec;
import com.github.netty.core.util.TypeUtil;
import com.github.netty.protocol.nrpc.RpcClient;
import com.github.netty.protocol.nrpc.RpcMethod;
import com.github.netty.protocol.nrpc.RpcServerInstance;
import com.github.netty.protocol.nrpc.exception.RpcDecodeException;
import com.github.netty.protocol.nrpc.exception.RpcEncodeException;
import io.netty.util.concurrent.FastThreadLocal;
import java.io.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.function.Consumer;
/**
* java.io.ObjectInputStream
*
* @author wangzihao
*/
public class JdkDataCodec implements DataCodec {
private static final byte[] EMPTY = {};
private static final FastThreadLocal