public void write(int ch) throws IOException {
  OutputStream os=getOutputStream();
  os.write('D');
  os.write(0);
  os.write(1);
  os.write(ch);
}

public void write ( int ch ) throws IOException { OutputStream os = getOutputStream ( ) ; os . write ( 'D' ) ; os . write ( 0 ) ; os . write ( 1 ) ; os . write ( ch ) ; }
writes a data byte to the output stream .
