kimmking commented on a change in pull request #1994: avro serialization 
implement
URL: https://github.com/apache/incubator-dubbo/pull/1994#discussion_r198242996
 
 

 ##########
 File path: 
dubbo-serialization/dubbo-serialization-avro/src/main/java/org/apache/dubbo/common/serialize/avro/AvroObjectOutput.java
 ##########
 @@ -0,0 +1,95 @@
+package org.apache.dubbo.common.serialize.avro;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.Arrays;
+
+import org.apache.avro.io.BinaryEncoder;
+import org.apache.avro.io.EncoderFactory;
+import org.apache.avro.reflect.ReflectDatumWriter;
+import org.apache.avro.util.Utf8;
+import org.apache.dubbo.common.serialize.ObjectOutput;
+
+public class AvroObjectOutput implements ObjectOutput{
+       private OutputStream out;
+       private EncoderFactory encoderFactory=EncoderFactory.get();
+       private BinaryEncoder encoder;
+       
+
+    public AvroObjectOutput(OutputStream out) {
+       this.out=out;
+       init(out);
+    }
+
+    public void init(OutputStream out){
 
 Review comment:
   move init to constructor

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to