Split byte array with string?
<p>I'd like to achieve something like this:</p>

<pre><code>String sentence = "Hi there over there";
String[]result = sentence.split("there");
//you get result[0] = Hi, result[1] = over
</code></pre>

<p>Is it possible to split using the String in a byte array format?</p>

<pre><code>byte[]delimiter = "there".getBytes();
byte[]byteSentence = sentence.getBytes();
//then somehow split byteSentence using delimiter.
</code></pre>
