public void close () throws IOException

Implementing: java.io.Closeable

Closes this output stream and releases any system resources associated with this stream. The general contract of close is that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.

The close method of OutputStream does nothing.

Exceptions:
IOException    if an I/O error occurs.