1 // DataOutput.java - Interface for data output conversions.
3 /* Copyright (C) 1998, 1999 Red Hat, Inc.
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
14 * @author Tom Tromey <tromey@cygnus.com>
15 * @date September 24, 1998
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.
23 public interface DataOutput
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;