for (Iterator iter = assetsOnLeg.iterator(); iter.hasNext(); ) { UID assetUID = (UID) iter.next(); String assetUIDString = assetUID.toString();
for (Iterator iter = assetsOnLeg.iterator(); iter.hasNext(); ) { UID assetUID = (UID) iter.next(); String assetUIDString = assetUID.toString();  int assetUIDLength = assetUIDString.length(); int arrayLocation = (index++)*maxStringLength; if (assetUIDLength > maxStringLength) { System.err.println ("Leg.writeToAssetBuffer - asset UID (" + assetUIDString + ") longer than max (" + maxStringLength + "), so truncating it."); assetUIDLength = maxStringLength; }
  public int writeToAssetBuffer(int index, 				char [] assetStringBuffer) {    for (Iterator iter = assetsOnLeg.iterator(); iter.hasNext(); ) {      UID assetUID = (UID) iter.next();      String assetUIDString = assetUID.toString();      //      System.out.println ("asset uid "+ assetUIDString + " at " + (index + i)*maxStringLength);      System.arraycopy (assetUIDString.toCharArray(), 0, 			assetStringBuffer, (index++)*maxStringLength, 			assetUIDString.length());      //      System.out.println ("asset buf after "+ new String (assetStringBuffer));    }    return index;  }