}
if (log.isLoggable(Level.FINER)) {
log.finer("Reading header for blob " + dataBlockCount++);
}
BlobHeader blobHeader = readHeader(headerLength);
if (log.isLoggable(Level.FINER)) {
log.finer("Processing blob of type " + blobHeader.getType() + ".");
}
byte[] blobData = readRawBlob(blobHeader);
nextBlob = new PbfRawBlob(blobHeader.getType(), blobData);
} catch (IOException e) {
throw new OsmosisRuntimeException("Unable to get next blob from PBF stream.", e);
}
}