How to split a byte array in Java?
<p>Let's take this byte array:</p>

<p><code>[FF 11 11 FF FF 22 22 22 FF FF 33 33 33 33 FF]</code></p>

<p>and let's choose the delimiter to be</p>

<p><code>[FF]</code></p>

<p>Then the split will result in these three parts:</p>

<p><code>[11 11]
[22 22 22]
[33 33 33 33]</code></p>