to top
Android APIs
public interface

Closeable

implements AutoCloseable
java.io.Closeable
Known Indirect Subclasses

Class Overview

An AutoCloseable whose close method may throw an IOException.

Summary

Public Methods
abstract void close()
Closes the object and release any system resources it holds.
[Expand]
Inherited Methods
From interface java.lang.AutoCloseable

Public Methods

public abstract void close ()

Added in API level 1

Closes the object and release any system resources it holds.

Although only the first call has any effect, it is safe to call close multiple times on the same object. This is more lenient than the overridden AutoCloseable.close(), which may be called at most once.

Throws
IOException