Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.