public interface Closeable
Closeable class represents a stream of
data, which can be closed when it is no longer needed.
Closing a stream allows the resources it uses to be
freed for an alternate use.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream represented by this class, thus freeing
system resources.
|
void close()
throws IOException
IOException - if an I/O error occurs in closing.