{
int segmentLength = read2Bytes("segmentLength", is,
"Not a Valid JPEG File");
byte[] sosSegmentBytes = readByteArray("SOSSegment",
segmentLength - 2, is, "Not a Valid JPEG File");
sosSegment = new SOSSegment(marker, sosSegmentBytes);
int hMax = 0;
int vMax = 0;
for (int i = 0; i < sofnSegment.numberOfComponents; i++)
{