359360361362363364365366367368369
int length = 0; while(textIt.hasNext()) { TextPiece tp = (TextPiece)textIt.next(); length += tp.characterLength(); } return length; } /**