(int c)
| 32 | } |
| 33 | |
| 34 | public void write(int c) throws IOException { |
| 35 | if (position >= buffer.length) { |
| 36 | drain(); |
| 37 | } |
| 38 | |
| 39 | buffer[position++] = (byte) (c & 0xFF); |
| 40 | } |
| 41 | |
| 42 | public void write(byte[] b, int offset, int length) throws IOException { |
| 43 | if (length > buffer.length - position) { |