public ImageDataElement getJpegRawImageDataElement() throws ImagingException {
        final TiffField jpegInterchangeFormat = findField(TiffTagConstants.TIFF_TAG_JPEG_INTERCHANGE_FORMAT);
        final TiffField jpegInterchangeFormatLength = findField(TiffTagConstants.TIFF_TAG_JPEG_INTERCHANGE_FORMAT_LENGTH);

        if (jpegInterchangeFormat != null && jpegInterchangeFormatLength != null) {
            final int offSet = jpegInterchangeFormat.getIntArrayValue()[0];
            final int byteCount = jpegInterchangeFormatLength.getIntArrayValue()[0];

            return new ImageDataElement(offSet, byteCount);
        }
        throw new ImagingException("Couldn't find image data.");
    }
Gets the byte order used by the source file for storing this directory and its content.

@return A valid byte order instance.
src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java