to top
Android APIs
Since: API Level 1
public interface

Closeable

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.

Public Methods

public abstract void close ()

Since: 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