Writes the specified byte to this output stream.paramb the byte.exceptionIOException if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
byte
IOException