From 75234e4cea3e2e93f770d6f81519fc17485ac6f5 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 6 Jan 2009 06:01:18 +0000 Subject: [PATCH] Updated protobuf example in javadoc --- .../org/jboss/netty/handler/codec/protobuf/ProtobufDecoder.java | 2 +- .../org/jboss/netty/handler/codec/protobuf/ProtobufEncoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufDecoder.java b/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufDecoder.java index 5289e351b2..21aa5de119 100644 --- a/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufDecoder.java @@ -47,7 +47,7 @@ import com.google.protobuf.Message; * * // Decoders * pipeline.addLast("frameDecoder", - * new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4)); + * new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4, 0, 4)); * pipeline.addLast("protobufDecoder", * new {@link ProtobufDecoder}(MyMessage.getDefaultInstance())); * diff --git a/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufEncoder.java b/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufEncoder.java index 228bad8c9a..61dc6ab407 100644 --- a/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufEncoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/protobuf/ProtobufEncoder.java @@ -43,7 +43,7 @@ import com.google.protobuf.Message; * * // Decoders * pipeline.addLast("frameDecoder", - * new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4)); + * new {@link LengthFieldBasedFrameDecoder}(1048576, 0, 4, 0, 4)); * pipeline.addLast("protobufDecoder", * new {@link ProtobufDecoder}(MyMessage.getDefaultInstance())); *