public static <L extends TBase<?, ?>> ThriftEncoder<L> newInstance(Class<L> clazz) throws NoSuchMethodException {
return new ThriftEncoder<L>(clazz);
}
public ThriftEncoder(Class<OUT> clazz) throws NoSuchMethodException {
super(new RawInt32(ByteOrder.BIG_ENDIAN).getEncoder(), ThriftMessageEncoder.newInstance(clazz));
}