public void writeLEChars(String s) throws IOException {
  int length=s.length();
  for (int i=0; i < length; i++) {
    int c=s.charAt(i);
    out.write(c & 0xFF);
    out.write((c >>> 8) & 0xFF);
  }
  written+=length * 2;
}

public void writeLEChars ( String s ) throws IOException { int length = s . length ( ) ; for ( int i = 0 ; i < length ; i ++ ) { int c = s . charAt ( i ) ; out . write ( c & 0xFF ) ; out . write ( ( c > > > 8 ) & 0xFF ) ; } written += length * 2 ; }
writes a string in little endian
