final List<ImageDataElement> elements = directory
.getTiffRawImageDataElements();
final TiffImageData.Data[] data = new TiffImageData.Data[elements.size()];
if (byteSource instanceof ByteSourceFile) {
final ByteSourceFile bsf = (ByteSourceFile) byteSource;
for (int i = 0; i < elements.size(); i++) {
final TiffDirectory.ImageDataElement element = elements.get(i);
data[i] = new TiffImageData.ByteSourceData(element.offset,
element.length, bsf);
}