public interface AutoCloseable
close method releases resources
that the object holds.
A common pattern for using an AutoCloseable resource:
Closable foo = new Foo();
try {
...;
} finally {
foo.close();
}
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the object and release any system resources it holds.
|