Translate a byte sequence given an InputStream
<p>In Java, is there a library anywhere that will, given a byte sequence (preferable expressed as hex), translate to another byte sequence given an InputStream?  For example:</p>

<pre><code>InputStream input = new FileInputStream(new File(...));
OutputStream output = new FileOutputStream(new File(...));
String fromHex = "C3BEAB";
String toHex = "EAF6"
MyMagicLibrary.translate(fromHex, toHex, input, output)
</code></pre>

<p>So if the input file (in hex looked like)</p>

<pre><code>00 00 12 18 33 C3 BE AB 00 23 C3 BE AB 00
</code></pre>

<p>after translation, the result would be</p>

<pre><code>00 00 12 18 33 EA F6 00 23 EA F6 00
</code></pre>
