public void write(int c) throws java.io.IOException {
synchronized (lock) {
    char oneCharArray[]=new char[1];
    oneCharArray[0]=(char)c;
    write(oneCharArray);
  }
}

public void write ( int c ) throws java . io . IOException { synchronized ( lock ) { char oneCharArray [ ] = new char [ 1 ] ; oneCharArray [ 0 ] = ( char ) c ; write ( oneCharArray ) ; } }
write a single character . the character to be written is contained in the 16 low - order bits of the given integer value ; the 16 high - order bits are ignored . subclasses that intend to support efficient single - character output should override this method .
