KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > io > Flushable


1 /*
2  * @(#)Flushable.java 1.1 04/04/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.io;
9
10 import java.io.IOException JavaDoc;
11
12 /**
13  * A <tt>Flushable</tt> is a destination of data that can be flushed. The
14  * flush method is invoked to write any buffered output to the underlying
15  * stream.
16  *
17  * @version 1.1 04/04/21
18  * @since 1.5
19  */

20
21 public interface Flushable {
22
23     /**
24      * Flushes this stream by writing any buffered output to the underlying
25      * stream.
26      *
27      * @throws IOException If an I/O error occurs
28      */

29     void flush() throws IOException JavaDoc;
30 }
31
Popular Tags