title: Way to work with bits. Bitbuffer. Android
body: <p>I use ByteBuffer. I need to get a buffer, shift by a number of bits.</p>
  
  <p>Now I perform this conversion, extracting int from the buffer and apply the shifts and masks. Is there a more versatile way to work with the bits? Bitbuffer? Guava does not contain the necessary methods by accident? Android support is needed.</p>
  
  <p>ByteBuffer contain:</p>
  
  <pre><code>[41 8A 25 E7 B8 9C 0C 1E ...]
  </code></pre>
  
  <p>Need:</p>
  
  <pre><code>[5E 7B 89 C0 C1 ...]
  </code></pre>