while (e.hasNext()) {
um = e.next();
if (((lastMapping.getUnicodeIndex() + 1) != um.getUnicodeIndex())
|| ((lastMapping.getGlyphIndex() + 1) != um.getGlyphIndex())) {
unicodeEnd = lastMapping.getUnicodeIndex();
cmaps.add(new CMapSegment(unicodeStart, unicodeEnd, glyphStart));
unicodeStart = um.getUnicodeIndex();
glyphStart = um.getGlyphIndex();
}
lastMapping = um;
}
unicodeEnd = lastMapping.getUnicodeIndex();
cmaps.add(new CMapSegment(unicodeStart, unicodeEnd, glyphStart));
}