Спасибо за предложение, ребята, я сначала использовал FilterInputStream, но потом увидел, что в этом нет необходимости, я использовал следующий фрагмент кода для ввода моего шестнадцатеричного тега APP0 в:
private static final String APP0Marker = "FF E0 00 10 4A 46 49 46 00 01 01 01 00 8B 00 8B 00 00";
И в желаемом методе преобразователя:
if (isJPEG(path))
{
fis = new FileInputStream(path);
bytes = new byte[(int)(new File(path).length())];
APP0 = hexStringToByteArray(APP0Marker.replaceAll(" ", ""));
for (int index = 0; index < bytes.length; index++)
{
if (index >= 2 && index <= (2 + APP0.length - 1))
{
b = APP0[index-2];
}
else
{
b = (byte) fis.read();
}//if-else
bytes[index] = b;
}//for
//Write new image file
out = new FileOutputStream(path);
out.write(bytes);
out.flush();
}//if
Надеюсь, это поможет любому, кто сталкивался с подобной проблемой:)