Exemple #1
0
 @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);
 }