public final void close () throws IOException

Implementing: java.lang.AutoCloseable

This method invokes the release method. It was added to the class so that it could be used in conjunction with the automatic resource management block construct.

Since:  1.7