public static int numBytes(String data) {
    return data.replaceAll(" ", "").length() / 2;
  }
Provide test use functions for JfifUtilTest.
imagepipeline-base/src/test/java/com/facebook/imageutils/JfifTestUtils.java