public interface Closeable extends AutoCloseable
AutoCloseable
whose close method may throw an IOException
.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the object and release any system resources it holds.
|
void close() throws IOException
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.
close
in interface AutoCloseable
IOException
Copyright © 2018. All rights reserved.