KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > NullProtocolAdaptor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.net.protocol;
5
6 import com.tc.bytes.TCByteBuffer;
7 import com.tc.bytes.TCByteBufferFactory;
8 import com.tc.net.core.TCConnection;
9
10 public class NullProtocolAdaptor implements TCProtocolAdaptor {
11
12   public NullProtocolAdaptor() {
13     super();
14   }
15
16   public void addReadData(TCConnection source, TCByteBuffer[] data, int length) {
17     return;
18   }
19
20   public TCByteBuffer[] getReadBuffers() {
21     return TCByteBufferFactory.getFixedSizedInstancesForLength(false, 4096);
22   }
23 }
Popular Tags