public final void writeBytes(String str) throws IOException {
  if (str.length() == 0) {
    return;
  }
  byte bytes[]=new byte[str.length()];
  for (int index=0; index < str.length(); index++) {
    bytes[index]=(byte)str.charAt(index);
  }
  out.write(bytes);
  written+=bytes.length;
}

public final void writeBytes ( String str ) throws IOException { if ( str . length ( ) == 0 ) { return ; } byte bytes [ ] = new byte [ str . length ( ) ] ; for ( int index = 0 ; index < str . length ( ) ; index ++ ) { bytes [ index ] = ( byte ) str . charAt ( index ) ; } out . write ( bytes ) ; written += bytes . length ; }
writes the low order bytes from a string to the target stream .
