public static String makeIfd(String[] IfdEntries, int nextEntryOffset, boolean littleEndian) {
    String ret = encodeInt2HexString(IfdEntries.length, 2, littleEndian);
    for (int i = 0; i < IfdEntries.length; i++) {
      ret += IfdEntries[i];
    }
    ret += encodeInt2HexString(nextEntryOffset, 4, littleEndian);
    return ret;
  }
Provide test use functions for JfifUtilTest.
imagepipeline-base/src/test/java/com/facebook/imageutils/JfifTestUtils.java