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.io;
05:
06: public final class TestTCDataOutput implements TCDataOutput {
07:
08: public final TCDataOutput out;
09:
10: public TestTCDataOutput(TCDataOutput out) {
11: this .out = out;
12: }
13:
14: public void close() {
15: return;
16: }
17:
18: public void write(int value) {
19: out.write(value);
20: }
21:
22: public void writeBoolean(boolean value) {
23: out.writeBoolean(value);
24: }
25:
26: public void writeByte(int value) {
27: out.writeByte(value);
28: }
29:
30: public void writeChar(int value) {
31: out.writeChar(value);
32: }
33:
34: public void writeDouble(double value) {
35: out.writeDouble(value);
36: }
37:
38: public void writeFloat(float value) {
39: out.writeFloat(value);
40: }
41:
42: public void writeInt(int value) {
43: out.writeInt(value);
44: }
45:
46: public void writeLong(long value) {
47: out.writeLong(value);
48: }
49:
50: public void writeShort(int value) {
51: out.writeShort(value);
52: }
53:
54: public void write(byte[] b) {
55: out.write(b);
56: }
57:
58: public void write(byte[] b, int off, int len) {
59: out.write(b, off, len);
60: }
61:
62: public void writeString(String string) {
63: out.writeString(string);
64: }
65:
66: }
|