directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r109321 - /incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java
Date Wed, 01 Dec 2004 10:51:46 GMT
Author: trustin
Date: Wed Dec  1 02:51:45 2004
New Revision: 109321

URL: http://svn.apache.org/viewcvs?view=rev&rev=109321
Log:
Decided not to use codec-stateful directly because of possible bugs such as DIRSEDA-23.  Of
course I'll provide a wrapper for codec-stateful.
Modified:
   incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java

Modified: incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java
Url: http://svn.apache.org/viewcvs/incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java?view=diff&rev=109321&p1=incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java&r1=109320&p2=incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java&r2=109321
==============================================================================
--- incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java
(original)
+++ incubator/directory/seda/branches/trustin/src/java/org/apache/netty/upstream/Codec.java
Wed Dec  1 02:51:45 2004
@@ -19,8 +19,7 @@
  */
 package org.apache.netty.upstream;
 
-import org.apache.commons.codec.stateful.StatefulDecoder;
-import org.apache.commons.codec.stateful.StatefulEncoder;
+import java.nio.ByteBuffer;
 
 
 /**
@@ -30,7 +29,7 @@
  * @version $Rev$, $Date$
  */
 public interface Codec {
-    StatefulEncoder newEncoder(Session session);
-
-    StatefulDecoder newDecoder(Session session);
+    boolean encode(Session session, ByteBuffer out, Object message);
+    
+    Object decode(Session session, ByteBuffer in);
 }

Mime
View raw message