&& tokenType != TokenTypeEnum.Keyword) // Not keyword (i.e. end at image data beginning (ID operator)).
{operands.add(parsePdfObject());}
header = new InlineImageHeader(operands);
}
InlineImageBody body;
{
moveNext();
Buffer data = new Buffer();
byte c1 = 0, c2 = 0;
do
{
try
{
while(true)
{
c1 = stream.readByte();
c2 = stream.readByte();
if(c1 == 'E' && c2 == 'I')
break;
data.append(c1);
data.append(c2);
} break;
}
catch(EOFException e)
{
/* NOTE: Current stream has finished. */
// Move to the next stream!
moveNextStream();
}
} while(stream != null);
body = new InlineImageBody(data);
}
return new InlineImage(
header,
body