public void getByteArray(TransferOutputStream touts) { touts.writeBoolean(allTypeBean.isAboolean()); touts.writeByte(allTypeBean.getAbyte()); touts.writeShort(allTypeBean.getAshort()); touts.writeChar(allTypeBean.getAchar()); touts.writeInt(allTypeBean.getAint()); touts.writeLong(allTypeBean.getAlong()); touts.writeFloat(allTypeBean.getAfloat()); touts.writeDouble(allTypeBean.getAdouble()); touts.writeDate(allTypeBean.getAdate()); touts.writeString(allTypeBean.getAstring()); }