1 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 |