public static void write(OutputStream out,int c){
  if (out == null) {
    throw new IllegalArgumentException("output stream null.");
  }
  try {
    out.write(c);
  }
 catch (  IOException e) {
    throw new RuntimeException(e.getMessage(),e);
  }
}

public static void write ( OutputStream out , int c ) { if ( out == null ) { throw new IllegalArgumentException ( "output stream null." ) ; } try { out . write ( c ) ; } catch ( IOException e ) { throw new RuntimeException ( e . getMessage ( ) , e ) ; } }
write a ascii code to the output stream
