KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > io > TestTCDataOutput


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