public void write(int c) throws IOException {
  ensureOpen();
  if (bufferSize == 0) {
    initOut();
    out.write(c);
  }
 else {
    if (getRemaining() == 0)     if (autoFlush)     flushBuffer();
 else     bufferOverflow();
    buf.buf[buf.pos++]=(char)c;
  }
}

public void write ( int c ) throws IOException { ensureOpen ( ) ; if ( bufferSize == 0 ) { initOut ( ) ; out . write ( c ) ; } else { if ( getRemaining ( ) == 0 ) if ( autoFlush ) flushBuffer ( ) ; else bufferOverflow ( ) ; buf . buf [ buf . pos ++ ] = ( char ) c ; } }
write a single character .
