parts.add(part);
long size = 0; for (int i = parts.size() - 1; i > -1; --i) size += ((DimeBodyPart) parts.elementAt(i)).getTransmissionSize( transSize); return size;
int size = parts.size(); int last = size - 1; for (int i = 0; i < size; ++i) ((DimeBodyPart) parts.elementAt(i)).write(os, (byte) ((i == 0 ? DimeBodyPart.POSITION_FIRST : (byte) 0) | (i == last ? DimeBodyPart.POSITION_LAST : (byte) 0)), transSize);