code: public void writeChar(int pChar) throws IOException {
          out.write(pChar & 0xFF);
          out.write((pChar >>> 8) & 0xFF);
          bytesWritten += 2;
      }
docs: Writes a two byte {@code char} to the underlying output stream
  in little endian order, low byte first.
  
  @param pChar the {@code char} value to be written.
  @throws IOException if the underlying stream throws an IOException.