LittleEndianOutputStream los = new LittleEndianOutputStream(new BufferedOutputStream(new FileOutputStream("les_test.bin")));
los.writeString("Binary test file");
los.writeFloat(Float.MAX_VALUE);
los.writeByte(Byte.MAX_VALUE);
los.writeShort(Short.MAX_VALUE);
los.writeInt(Integer.MAX_VALUE);
los.writeLong(Long.MAX_VALUE);
los.writeDouble(Double.MAX_VALUE);
los.close();