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: import java.io.DataInput;
07: import java.io.IOException;
08:
09: /**
10: * Input stream
11: */
12: public interface TCDataInput extends DataInput {
13:
14: /**
15: * Read string
16: * @return String value
17: */
18: public String readString() throws IOException;
19:
20: /**
21: * Read bytes into b starting at off for len.
22: * @param b The byte array to read into
23: * @param off The offset to start at in b
24: * @param len The number of bytes to read
25: * @return The number of bytes read
26: * @throws IOException If there is an error reading the bytes
27: */
28: public int read(byte[] b, int off, int len) throws IOException;
29:
30: }
|