public void writeShort(int pShort) throws IOException {
        out.write(pShort & 0xFF);
        out.write((pShort >>> 8) & 0xFF);
        bytesWritten += 2;
    }
public void writeShort ( int pShort ) throws IOException { out . write ( pShort & 0xFF ) ; out . write ( ( pShort > > > 8 ) & 0xFF ) ; bytesWritten += 2 ; }
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.