1 |
/* Flushable.java -- flush()-able object |
/* Flushable.java -- Flushable object |
2 |
Copyright (C) 2004 Free Software Foundation |
Copyright (C) 2004, 2005 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
37 |
|
|
38 |
package java.io; |
package java.io; |
39 |
|
|
40 |
|
/** |
41 |
|
* A <code>Flushable</code> class represents a stream of |
42 |
|
* data, for which internally buffered data can be `flushed'. |
43 |
|
* Flushing such a stream causes the buffered data to be |
44 |
|
* written to the stream. |
45 |
|
* |
46 |
|
* @author Tom Tromey (tromey@redhat.com) |
47 |
|
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
48 |
|
* @since 1.5 |
49 |
|
*/ |
50 |
public interface Flushable |
public interface Flushable |
51 |
{ |
{ |
52 |
void flush() throws IOException; |
|
53 |
|
/** |
54 |
|
* Flushes the stream represented by this class, |
55 |
|
* so that any buffered data is written to the stream. |
56 |
|
* |
57 |
|
* @throws IOException if an I/O error occurs in flushing. |
58 |
|
*/ |
59 |
|
void flush() |
60 |
|
throws IOException; |
61 |
|
|
62 |
} |
} |