Most visited

Recently visited

Added in API level 1

Closeable

public interface Closeable
implements AutoCloseable

java.io.Closeable
Known Indirect Subclasses


A Closeable是可以关闭的数据的来源或目的地。 调用close方法释放对象所持有的资源(如打开的文件)。

Summary

Public methods

abstract void close()

关闭此流并释放与其关联的所有系统资源。

Inherited methods

From interface java.lang.AutoCloseable

Public methods

close

Added in API level 1
void close ()

关闭此流并释放与其关联的所有系统资源。 如果流已经关闭,则调用此方法不起作用。

Throws
IOException if an I/O error occurs

Hooray!