1 // OutputStream.java - Send output bytes to output sink.
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 abstract class OutputStream
25 public abstract void write (int b
) throws IOException
;
27 public void write (byte[] b
) throws IOException
, NullPointerException
29 write (b
, 0, b
.length
);
32 public void write (byte[] b
, int off
, int len
)
33 throws IOException
, NullPointerException
, IndexOutOfBoundsException
35 if (off
< 0 || len
< 0 || off
+ len
> b
.length
)
36 throw new ArrayIndexOutOfBoundsException ();
37 for (int i
= 0; i
< len
; ++i
)
41 public void flush () throws IOException
45 public void close () throws IOException