CVS: beepcore-java/src/org/beepcore/beep/lib SharedChannel.java,1.8,1.9

Huston Franklin <[email protected]> Mon, 21 Apr 2003 08:09:14 -0700
Newsgroups gmane.network.beep.beepcore.java.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv30052/src/org/beepcore/beep/lib

Modified Files:
	SharedChannel.java 
Log Message:
The first pass of interface cleanup.

Index: SharedChannel.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/lib/SharedChannel.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** SharedChannel.java	7 Sep 2002 15:06:45 -0000	1.8
--- SharedChannel.java	21 Apr 2003 15:09:11 -0000	1.9
***************
*** 3,7 ****
   *
   * Copyright (c) 2001 Invisible Worlds, Inc.  All rights reserved.
!  * Copyright (c) 2002 Huston Franklin.  All rights reserved.
   *
   * The contents of this file are subject to the Blocks Public License (the
--- 3,7 ----
   *
   * Copyright (c) 2001 Invisible Worlds, Inc.  All rights reserved.
!  * Copyright (c) 2002, 2003 Huston Franklin.  All rights reserved.
   *
   * The contents of this file are subject to the Blocks Public License (the
***************
*** 47,51 ****
   * @version $Revision$, $Date$
   */
! public class SharedChannel extends Channel {
  
      private Channel channel = null;    // Channel this SharedChannel references
--- 47,51 ----
   * @version $Revision$, $Date$
   */
! public class SharedChannel implements Channel {
  
      private Channel channel = null;    // Channel this SharedChannel references
***************
*** 64,70 ****
      SharedChannel(Channel channel, ChannelPool pool)
      {
-         super(channel.getProfile(), String.valueOf(channel.getNumber()),
-               channel.getMessageListener(), true, channel.getSession());
- 
          this.channel = channel;
          this.pool = pool;
--- 64,67 ----
***************
*** 121,139 ****
      }
  
-     public void setReceiveBufferSize( int size ) throws BEEPException
-     {
-         channel.setReceiveBufferSize( size );
-     }
- 
-     public int getBufferSize()
-     {
-         return channel.getBufferSize();
-     }
- 
-     public int getBufferUsed()
-     {
-         return channel.getBufferUsed();
-     }
- 
      public MessageListener getMessageListener()
      {
--- 118,121 ----
***************
*** 186,189 ****
--- 168,191 ----
          channel.sendMSG(ds, r);
          return r;
+     }
+ 
+     public void setStartData(String data)
+     {
+         channel.setStartData(data);
+     }
+ 
+     public String getStartData()
+     {
+         return channel.getStartData();
+     }
+ 
+     public Object getAppData()
+     {
+         return channel.getAppData();
+     }
+ 
+     public void setAppData(Object applicationData)
+     {
+         channel.setAppData(applicationData);
      }
  }



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf