for (int i = 0; i < segments.size(); i++)
{
App13Segment segment = (App13Segment) segments.get(i);
PhotoshopApp13Data data = segment.parsePhotoshopSegment(params);
if (data != null && photoshopApp13Data != null)
throw new ImageReadException(
"Jpeg contains more than one Photoshop App13 segment.");
photoshopApp13Data = data;