]>
Commit | Line | Data |
---|---|---|
ee9dd372 TT |
1 | /* Copyright (C) 1998, 1999 Cygnus Solutions |
2 | ||
3 | This file is part of libgcj. | |
4 | ||
5 | This software is copyrighted work licensed under the terms of the | |
6 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for | |
7 | details. */ | |
8 | ||
9 | package java.io; | |
10 | ||
11 | /** | |
12 | * @author Warren Levy <warrenl@cygnus.com> | |
13 | * @date October 2, 1998. | |
14 | */ | |
15 | ||
16 | /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 | |
17 | * "The Java Language Specification", ISBN 0-201-63451-1 | |
18 | * plus online API docs for JDK 1.2 beta from http://www.javasoft.com. | |
19 | * Status: Believed complete and correct. | |
20 | */ | |
21 | ||
22 | public interface DataInput | |
23 | { | |
24 | public boolean readBoolean() throws IOException; | |
25 | public byte readByte() throws IOException; | |
26 | public char readChar() throws IOException; | |
27 | public double readDouble() throws IOException; | |
28 | public float readFloat() throws IOException; | |
29 | public void readFully(byte[] b) | |
30 | throws IOException, NullPointerException; | |
31 | public void readFully(byte[] b, int off, int len) | |
32 | throws IOException, NullPointerException, IndexOutOfBoundsException; | |
33 | public int readInt() throws IOException; | |
34 | public String readLine() throws IOException; | |
35 | public long readLong() throws IOException; | |
36 | public short readShort() throws IOException; | |
37 | public int readUnsignedByte() throws IOException; | |
38 | public int readUnsignedShort() throws IOException; | |
39 | public String readUTF() throws IOException; | |
40 | public int skipBytes(int n) throws IOException; | |
41 | } |