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