KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > io > Closeable


1 /*
2  * @(#)Closeable.java 1.4 03/12/19
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>Closeable</tt> is a source or destination of data that can be closed.
14  * The close method is invoked to release resources that the object is
15  * holding (such as open files).
16  *
17  * @version 1.4 03/12/19
18  * @since 1.5
19  */

20
21 public interface Closeable {
22
23     /**
24      * Closes this stream and releases any system resources associated
25      * with it. If the stream is already closed then invoking this
26      * method has no effect.
27      *
28      * @throws IOException if an I/O error occurs
29      */

30     public void close() throws IOException JavaDoc;
31
32 }
33
Popular Tags