Writes a single byte to the output buffer. @param b The byte to write @throws IOException if an I/O error occurs
(int b)
| 415 | * @throws IOException if an I/O error occurs |
| 416 | */ |
| 417 | public void writeByte(int b) throws IOException { |
| 418 | |
| 419 | if (closed) { |
| 420 | throw new IOException(sm.getString("outputBuffer.closed")); |
| 421 | } |
| 422 | |
| 423 | if (suspended) { |
| 424 | return; |
| 425 | } |
| 426 | |
| 427 | if (isFull(bb)) { |
| 428 | flushByteBuffer(); |
| 429 | } |
| 430 | |
| 431 | transfer((byte) b, bb); |
| 432 | updateBytesWritten(1); |
| 433 | } |
| 434 | |
| 435 | |
| 436 | private void updateBytesWritten(int increment) throws IOException { |
no test coverage detected