/** * Write an integer into the byte stream. * @param anInt the integer to be written */ public void write(int anInt) { writeInteger32ToByteArray(anInt); }
/** * @param anInt the integer to be written */ public void write(Integer anInt) { writeInteger32ToByteArray(anInt); }
/** * Write a float into the byte stream. * @param aFloat floating point number to be written */ public void write(Float aFloat) { writeInteger32ToByteArray(Float.floatToIntBits(aFloat)); }
/** * Write bytes into the byte stream. * @param bytes bytes to be written */ public void write(byte[] bytes) { writeInteger32ToByteArray(bytes.length); writeUnderHandler(bytes); alignStream(); }