OSDN Git Service

d226d0c962b214b20cd9bb3c9b6020e70caccd6d
[pf3gnuchains/gcc-fork.git] / libjava / java / io / DataOutput.java
1 // DataOutput.java - Interface for data output conversions.
2
3 /* Copyright (C) 1998, 1999  Red Hat, Inc.
4
5    This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9 details.  */
10
11 package java.io;
12
13 /**
14  * @author Tom Tromey <tromey@cygnus.com>
15  * @date September 24, 1998 
16  */ 
17
18 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
19  * "The Java Language Specification", ISBN 0-201-63451-1
20  * Status:  Complete to version 1.1.
21  */
22
23 public interface DataOutput
24 {
25   public abstract void write (int b) throws IOException;
26   public abstract void write (byte[] b)
27     throws IOException, NullPointerException;
28   public abstract void write (byte[] b, int off, int len)
29     throws IOException, NullPointerException, IndexOutOfBoundsException;
30   public abstract void writeBoolean (boolean v) throws IOException;
31   public abstract void writeByte (int v) throws IOException;
32   public abstract void writeShort (int v) throws IOException;
33   public abstract void writeChar (int v) throws IOException;
34   public abstract void writeInt (int v) throws IOException;
35   public abstract void writeLong (long v) throws IOException;
36   public abstract void writeFloat (float v) throws IOException;
37   public abstract void writeDouble (double v) throws IOException;
38   public abstract void writeBytes (String s)
39     throws IOException, NullPointerException;
40   public abstract void writeChars (String s)
41     throws IOException, NullPointerException;
42   public abstract void writeUTF (String s)
43     throws IOException, NullPointerException;
44 }