KickJava   Java API By Example, From Geeks To Geeks.

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


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
9 /**
10  * @author teck
11  */

12 public class NullNetworkHeader implements TCNetworkHeader {
13
14   public NullNetworkHeader() {
15     super();
16   }
17
18   public int getHeaderByteLength() {
19     return 0;
20   }
21
22   public TCByteBuffer getDataBuffer() {
23     return TCByteBufferFactory.getInstance(false, 0);
24   }
25
26   public void validate() {
27     return;
28   }
29
30   public void dispose() {
31     return;
32   }
33
34   public void recycle() {
35     return;
36   }
37
38 }
Popular Tags