01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol;
05:
06: import com.tc.bytes.TCByteBuffer;
07: import com.tc.bytes.TCByteBufferFactory;
08:
09: /**
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: }
|