(int b)
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public void write(int b) throws IOException { |
| 63 | if (encoder.closed) { |
| 64 | throw new IOException("write after close"); |
| 65 | } |
| 66 | while (!encoder.encode(EncoderJNI.Operation.PROCESS)) { |
| 67 | // Busy-wait loop. |
| 68 | } |
| 69 | encoder.inputBuffer.put((byte) b); |
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public void write(byte[] b) throws IOException { |