public void writeInt(int pInt) throws IOException {
        out.write(pInt & 0xFF);
        out.write((pInt >>> 8) & 0xFF);
        out.write((pInt >>> 16) & 0xFF);
        out.write((pInt >>> 24) & 0xFF);
        bytesWritten += 4;

    }
public void writeInt ( int pInt ) throws IOException { out . write ( pInt & 0xFF ) ; out . write ( ( pInt > > > 8 ) & 0xFF ) ; out . write ( ( pInt > > > 16 ) & 0xFF ) ; out . write ( ( pInt > > > 24 ) & 0xFF ) ; bytesWritten += 4 ; }
Writes a four-byte {@code int} to the underlying output stream
in little endian order, low byte first, high byte last

@param pInt the {@code int} to be written.
@throws IOException if the underlying stream throws an IOException.