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: /**
07: * Output stream interface.
08: */
09: public interface TCDataOutput {
10:
11: /**
12: * Close the stream
13: */
14: public void close();
15:
16: /**
17: * Write int
18: * @param value Value
19: */
20: public void write(int value);
21:
22: /**
23: * Write byte array
24: * @param value Value
25: */
26: public void write(byte[] value);
27:
28: /**
29: * Write byte array from offset of length
30: * @param value Value
31: * @param offset Start at offset in value
32: * @param length Length to write
33: */
34: public void write(byte[] value, int offset, int length);
35:
36: /**
37: * Write boolean
38: * @param value Value
39: */
40: public void writeBoolean(boolean value);
41:
42: /**
43: * Write byte
44: * @param value Value
45: */
46: public void writeByte(int value);
47:
48: /**
49: * Write char
50: * @param value Value
51: */
52: public void writeChar(int value);
53:
54: /**
55: * Write double
56: * @param value Value
57: */
58: public void writeDouble(double value);
59:
60: /**
61: * Write float
62: * @param value Value
63: */
64: public void writeFloat(float value);
65:
66: /**
67: * Write int
68: * @param value Value
69: */
70: public void writeInt(int value);
71:
72: /**
73: * Write long
74: * @param value Value
75: */
76: public void writeLong(long value);
77:
78: /**
79: * Write short
80: * @param value Value
81: */
82: public void writeShort(int value);
83:
84: /**
85: * Write String
86: * @param value Value
87: */
88: public void writeString(String string);
89:
90: }
|