@Override public void write(int i) throws IOException { synchronized (stream) { if (!stream.isSync() && stream.hasBufferedOutputSpace()) { stream.buffer.put((byte) i); return; } } byte[] b = {(byte) i}; write(b, 0, 1); }
@Override public void write(int i) throws IOException { synchronized (stream) { if (!stream.isSync() && stream.hasBufferedOutputSpace()) { stream.buffer.put((byte) i); return; } } byte[] b = {(byte) i}; write(b, 0, 1); }