[jboss-cvs] JBoss Messaging SVN: r3387 - branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/codec.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 30 12:21:25 EST 2007


Author: jmesnil
Date: 2007-11-30 12:21:25 -0500 (Fri, 30 Nov 2007)
New Revision: 3387

Added:
   branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/codec/RemotingBuffer.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-544 Replace client-server transport with NIO based transport
* RemotingBuffer is used by our codec and typically encapsulates a MINA IoBuffer

Added: branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/codec/RemotingBuffer.java
===================================================================
--- branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/codec/RemotingBuffer.java	                        (rev 0)
+++ branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/codec/RemotingBuffer.java	2007-11-30 17:21:25 UTC (rev 3387)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.messaging.core.remoting.codec;
+
+import java.nio.charset.CharacterCodingException;
+import java.nio.charset.CharsetDecoder;
+import java.nio.charset.CharsetEncoder;
+
+/**
+ * @author <a href="mailto:jmesnil at redhat.com">Jeff Mesnil</a>
+ * 
+ * @version <tt>$Revision$</tt>
+ * 
+ */
+public interface RemotingBuffer
+{
+   void put(byte byteValue);
+
+   void putInt(int intValue);
+
+   void putLong(long longValue);
+
+   void put(byte[] bytes);
+
+   void putFloat(float floatValue);
+
+   void putString(String string, CharsetEncoder encoder)
+         throws CharacterCodingException;
+
+   byte get();
+
+   String getString(CharsetDecoder decoder) throws CharacterCodingException;
+
+   int remaining();
+
+   int getInt();
+
+   long getLong();
+
+   void get(byte[] b);
+
+   float getFloat();
+
+   void putBoolean(boolean b);
+
+   boolean getBoolean();
+
+   void putNullableString(String nullableString)
+         throws CharacterCodingException;
+
+   String getNullableString() throws CharacterCodingException;
+
+}




More information about the jboss-cvs-commits mailing list